Created
November 15, 2011 11:32
-
-
Save benjaminhawkeslewis/1366855 to your computer and use it in GitHub Desktop.
Create or reattach tmux session oneliner
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
function tmux_create_or_reattach() { tmux has-session -t $1 && tmux attach -t $1 || tmux -u -L $1; }; tmux_create_or_reattach ben |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment