mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 04:39:46 +08: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,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…
Reference in New Issue
Block a user