summaryrefslogtreecommitdiff
path: root/plugins/tmux
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2018-08-07 00:40:18 +0200
committerMarc Cornellà <marc.cornella@live.com>2018-08-07 00:40:18 +0200
commit76d3eedf7fa47886658c79884884f4077ce09107 (patch)
tree389d9ab6070f3b84e28f46426715fc6ef6f7a9d8 /plugins/tmux
parent54055c4530112439a04bf039d09c30c4b7330c84 (diff)
downloadzsh-76d3eedf7fa47886658c79884884f4077ce09107.tar.gz
zsh-76d3eedf7fa47886658c79884884f4077ce09107.tar.bz2
zsh-76d3eedf7fa47886658c79884884f4077ce09107.zip
tmux: fix regression after f584de5
Fixes #7041
Diffstat (limited to 'plugins/tmux')
-rw-r--r--plugins/tmux/tmux.plugin.zsh4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
index 2d161c377..ff7de746b 100644
--- a/plugins/tmux/tmux.plugin.zsh
+++ b/plugins/tmux/tmux.plugin.zsh
@@ -60,9 +60,7 @@ function _zsh_tmux_plugin_run() {
[[ "$ZSH_TMUX_ITERM2" == "true" ]] && tmux_cmd+=(-CC)
# Try to connect to an existing session.
- if [[ "$ZSH_TMUX_AUTOCONNECT" == "true" ]]; then
- $tmux_cmd attach
- fi
+ [[ "$ZSH_TMUX_AUTOCONNECT" == "true" ]] && $tmux_cmd attach
# If failed, just run tmux, fixing the TERM variable if requested.
if [[ $? -ne 0 ]]; then