Skip to content

Instantly share code, notes, and snippets.

@benjaminhawkeslewis
Created November 15, 2011 11:32
Show Gist options
  • Save benjaminhawkeslewis/1366855 to your computer and use it in GitHub Desktop.
Save benjaminhawkeslewis/1366855 to your computer and use it in GitHub Desktop.
Create or reattach tmux session oneliner
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