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
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 print "zsh tmux plugin: tmux not found. Please install tmux before using this plugin." >&2
return 1 return 1
fi fi