1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

tmux: fix regression after f584de5

Fixes #7041
This commit is contained in:
Marc Cornellà 2018-08-07 00:40:18 +02:00
parent 54055c4530
commit 76d3eedf7f

View file

@ -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