Created
July 9, 2015 16:13
-
-
Save afresh1/d0f437de99e4ee55197c to your computer and use it in GitHub Desktop.
Start tmux on login. This would go in your kshrc or bashrc
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
if [ ! "$TMUX" ]; then | |
echo "Starting tmux . . ." | |
sleep 3 | |
[ "$TERM" = "xterm" ] && TERM=xterm-256color | |
tmux -2 attach || tmux -2 | |
exit | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment