shosei

tmux.conf

Mar 12th, 2012
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. # Start tmux on every shell login
  2. [[ $TERM != "screen" ]] && tmux && exit
  3.  
  4. # TMUX - Cheacks if tmux in installed before launch
  5. if which tmux 2>&1 >/dev/null; then
  6.     # if no session is started, start a new session
  7.     test -z ${TMUX} && tmux
  8.  
  9.     # when quitting tmux, try to attach
  10.     while test -z ${TMUX}; do
  11.         tmux attach || break
  12.     done
  13. fi
Advertisement
Add Comment
Please, Sign In to add comment