From 76d3eedf7fa47886658c79884884f4077ce09107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Tue, 7 Aug 2018 00:40:18 +0200 Subject: [PATCH] tmux: fix regression after f584de5 Fixes #7041 --- plugins/tmux/tmux.plugin.zsh | 4 +--- 1 file changed, 1 insertion(+), 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