tmux: fix invalid syntax on old zsh versions

First reported on f584de5930 (r29984052)
This commit is contained in:
Marc Cornellà 2018-08-09 17:19:40 +02:00 committed by GitHub
parent 44473d785e
commit 60db5cdb58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,8 @@ function _zsh_tmux_plugin_run() {
return $? return $?
fi fi
local -a tmux_cmd=(command tmux) local -a tmux_cmd
tmux_cmd=(command tmux)
[[ "$ZSH_TMUX_ITERM2" == "true" ]] && tmux_cmd+=(-CC) [[ "$ZSH_TMUX_ITERM2" == "true" ]] && tmux_cmd+=(-CC)
# Try to connect to an existing session. # Try to connect to an existing session.