Created
February 24, 2015 13:14
-
-
Save schlady/f792135987502160d57c to your computer and use it in GitHub Desktop.
A self destroying tmux session
This file contains hidden or 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
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