diff options
author | Marc Cornellà <marc.cornella@live.com> | 2018-08-09 17:19:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-09 17:19:40 +0200 |
commit | 60db5cdb582134db2778d25d7cb7a40c0249e8d9 (patch) | |
tree | 55d91d4263a1fc456c087c9d191d732bc4e1873b /plugins/tmux | |
parent | 44473d785e435373350bc6b3253eec104c05b404 (diff) | |
download | zsh-60db5cdb582134db2778d25d7cb7a40c0249e8d9.tar.gz zsh-60db5cdb582134db2778d25d7cb7a40c0249e8d9.tar.bz2 zsh-60db5cdb582134db2778d25d7cb7a40c0249e8d9.zip |
tmux: fix invalid syntax on old zsh versions
First reported on https://github.com/robbyrussell/oh-my-zsh/commit/f584de5930467fd53e8b7d2e51f5227bc405e4b2#r29984052
Diffstat (limited to 'plugins/tmux')
-rw-r--r-- | plugins/tmux/tmux.plugin.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index ff7de746b..4a7986389 100644 --- a/plugins/tmux/tmux.plugin.zsh +++ b/plugins/tmux/tmux.plugin.zsh @@ -56,7 +56,8 @@ function _zsh_tmux_plugin_run() { return $? fi - local -a tmux_cmd=(command tmux) + local -a tmux_cmd + tmux_cmd=(command tmux) [[ "$ZSH_TMUX_ITERM2" == "true" ]] && tmux_cmd+=(-CC) # Try to connect to an existing session. |