76d3eedf7fa47886658c79884884f4077ce09107
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
tmux: fix regression after f584de5
Fixes #7041
Diff
1diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
2index 2d161c37719c322be2d0199250afd01fab00fef6..ff7de746b7d427f27c3b27a8e36b12d596edebff 100644
3--- a/plugins/tmux/tmux.plugin.zsh
4+++ b/plugins/tmux/tmux.plugin.zsh
5@@ -60,9 +60,7 @@ function _zsh_tmux_plugin_run() {
6 [[ "$ZSH_TMUX_ITERM2" == "true" ]] && tmux_cmd+=(-CC)
7
8 # Try to connect to an existing session.
9- if [[ "$ZSH_TMUX_AUTOCONNECT" == "true" ]]; then
10- $tmux_cmd attach
11- fi
12+ [[ "$ZSH_TMUX_AUTOCONNECT" == "true" ]] && $tmux_cmd attach
13
14 # If failed, just run tmux, fixing the TERM variable if requested.
15 if [[ $? -ne 0 ]]; then