Permalink
Browse files

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

  • Loading branch information...
1 parent 8d5387a commit ebe5d8ffe6d4431af833dd71da784d49ee479b88 @bjeanes committed Mar 1, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 shells/tmux.sh
View
@@ -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

0 comments on commit ebe5d8f

Please sign in to comment.