From 774c142844afc859cbf80bd62f20d5af102ec466 Mon Sep 17 00:00:00 2001 From: Anatoly Popov Date: Mon, 26 Jan 2026 11:30:23 +0300 Subject: [PATCH] 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 ``` --- plugins/tmux/tmux.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index b1d97e98f..fdf66feb0 100644 --- a/plugins/tmux/tmux.plugin.zsh +++ b/plugins/tmux/tmux.plugin.zsh @@ -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