Skip to content

Instantly share code, notes, and snippets.

@Genki-S
Last active August 29, 2015 14:02
Show Gist options
  • Save Genki-S/94cf8c9868f9bb95c923 to your computer and use it in GitHub Desktop.
Save Genki-S/94cf8c9868f9bb95c923 to your computer and use it in GitHub Desktop.
# if not in tmux session
if [ -z $TMUX ]; then
# jump into new session
tmux new-session
# exit when coming back from the tmux session
exit
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment