1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-02-02 03:49:48 +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:
Anatoly Popov 2026-01-26 11:30:23 +03:00 committed by GitHub
parent 67cd8c4673
commit 774c142844
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
return 1
fi