diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index 5e39f5792..dea9e4c9a 100644 --- a/plugins/tmux/tmux.plugin.zsh +++ b/plugins/tmux/tmux.plugin.zsh @@ -35,7 +35,8 @@ if (( $+commands[tmux] )); then (( $+commands[$cmd] )) || return 127 # start the command - if ! tmux has -t $1 2>/dev/null; then + # if ! tmux has -t $1 2>/dev/null; then + if ! tmux has -t $1; then TMUX= tmux new -ds $1 ${cmd-$2} fi