mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
fix(tmux): better tmux detection
I have tmux installed by brew and this plugin can't detect it. ``` # aensidhe @ thinkpad in ~ [11:16:31] C:1 $ $+commands[tmux] zsh: command not found: 1 # aensidhe @ thinkpad in ~ [11:18:43] C:127 $ which tmux /home/linuxbrew/.linuxbrew/bin/tmux ```
This commit is contained in:
parent
67cd8c4673
commit
774c142844
1 changed files with 1 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
if ! (( $+commands[tmux] )); then
|
if ! command -v tmux >/dev/null; then
|
||||||
print "zsh tmux plugin: tmux not found. Please install tmux before using this plugin." >&2
|
print "zsh tmux plugin: tmux not found. Please install tmux before using this plugin." >&2
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue