Fix Tmux shell integration to not exit when tmux is not installed.

pull/2/head
Bodaniel Jeanes 2012-03-01 16:41:25 -06:00
parent 8d5387acff
commit ebe5d8ffe6
1 changed files with 3 additions and 3 deletions

View File

@ -15,8 +15,8 @@ if [ -z "$TMUX" ]; then
last_session="$(tmux list-windows -t login | tail -n1 | cut -d: -f1)" last_session="$(tmux list-windows -t login | tail -n1 | cut -d: -f1)"
tmux new-session -t login \; new-window -a -t $last_session # Create a *new* session bound to "login" and create a new window tmux new-session -t login \; new-window -a -t $last_session # Create a *new* session bound to "login" and create a new window
fi fi
fi
# When Tmux exits, we exit # When Tmux exits, we exit
exit exit
fi fi
fi