Permalink
Browse files

tmux per default

  • Loading branch information...
1 parent 87a9fd4 commit 5c8c931d1dab9911379da53115e25076f1094d21 @winks committed Apr 16, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 .bash_profile
View
@@ -1,2 +1,6 @@
-[[ $TERM != "screen" ]] && which tmux >/dev/null 2>&1 && exec tmux && exit
+if [[ $TERM != "screen" ]]; then
+ if which tmux > /dev/null 2>&1; then
+ test -z ${TMUX} && (tmux attach || tmux) && exit
+ fi
+fi
which zsh >/dev/null 2>&1 && exec zsh -l

0 comments on commit 5c8c931

Please sign in to comment.