Skip to content

Instantly share code, notes, and snippets.

@schlady
Created February 24, 2015 13:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schlady/f792135987502160d57c to your computer and use it in GitHub Desktop.
Save schlady/f792135987502160d57c to your computer and use it in GitHub Desktop.
A self destroying tmux session
alias tmuxn='tmux new-session -s $$'
_trap_exit() { tmux kill-session -t $$; }
trap _trap_exit EXIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment