Created
March 13, 2013 20:52
-
-
Save cpb/5156041 to your computer and use it in GitHub Desktop.
Good to add to your raspberry pi's shell rc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TMUX | |
if which tmux 2>&1 >/dev/null; then | |
# if no session is started, start a new session | |
test -z ${TMUX} && (tmux attach || tmux new-session) | |
# when quitting tmux, try to attach | |
while test -z ${TMUX}; do | |
tmux attach || break | |
done | |
fi | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment