From ebe5d8ffe6d4431af833dd71da784d49ee479b88 Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Thu, 1 Mar 2012 16:41:25 -0600 Subject: [PATCH] Fix Tmux shell integration to not exit when tmux is not installed. --- shells/tmux.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shells/tmux.sh b/shells/tmux.sh index 56ddaad..2fc0fbd 100644 --- a/shells/tmux.sh +++ b/shells/tmux.sh @@ -15,8 +15,8 @@ if [ -z "$TMUX" ]; then 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 fi - fi - # When Tmux exits, we exit - exit + # When Tmux exits, we exit + exit + fi fi