Skip to content

Instantly share code, notes, and snippets.

@alexluecke
Created September 6, 2014 17:51
Show Gist options
  • Save alexluecke/3a81cc1e3584c3ae4d0f to your computer and use it in GitHub Desktop.
Save alexluecke/3a81cc1e3584c3ae4d0f to your computer and use it in GitHub Desktop.

Start TMUX at login

if [ ! -n "$TMUX" ];
then
	export TERM=gnome-256color
	( (tmux -2 has-session -t alex && tmux -2 attach-session -t alex) || (tmux -2 new-session -s alex) )
	echo "tmux failed to start" 1>&2
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment