Skip to content

Instantly share code, notes, and snippets.

@afresh1
Created July 9, 2015 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afresh1/d0f437de99e4ee55197c to your computer and use it in GitHub Desktop.
Save afresh1/d0f437de99e4ee55197c to your computer and use it in GitHub Desktop.
Start tmux on login. This would go in your kshrc or bashrc
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