Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Start tmux on every shell login
- [[ $TERM != "screen" ]] && tmux && exit
- # TMUX - Cheacks if tmux in installed before launch
- if which tmux 2>&1 >/dev/null; then
- # if no session is started, start a new session
- test -z ${TMUX} && tmux
- # when quitting tmux, try to attach
- while test -z ${TMUX}; do
- tmux attach || break
- done
- fi
Advertisement
Add Comment
Please, Sign In to add comment