60db5cdb582134db2778d25d7cb7a40c0249e8d9

Author
Marc Cornellà <marc.cornella@live.com>
Committer
GitHub <noreply@github.com>
Date

Message

tmux: fix invalid syntax on old zsh versions

First reported on https://github.com/robbyrussell/oh-my-zsh/commit/f584de5930467fd53e8b7d2e51f5227bc405e4b2#r29984052

Diff

 1diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
 2index ff7de746b7d427f27c3b27a8e36b12d596edebff..4a79863896b21ffbeeedc94a5a61e7e905ad88bd 100644
 3--- a/plugins/tmux/tmux.plugin.zsh
 4+++ b/plugins/tmux/tmux.plugin.zsh
 5@@ -56,7 +56,8 @@ function _zsh_tmux_plugin_run() {
 6     return $?
 7   fi
 8 
 9-  local -a tmux_cmd=(command tmux)
10+  local -a tmux_cmd
11+  tmux_cmd=(command tmux)
12   [[ "$ZSH_TMUX_ITERM2" == "true" ]] && tmux_cmd+=(-CC)
13 
14   # Try to connect to an existing session.