Skip to content

Instantly share code, notes, and snippets.

@carlosroman
Created January 15, 2015 10:13
Show Gist options
  • Save carlosroman/7394a3293c9da7a6f0bd to your computer and use it in GitHub Desktop.
Save carlosroman/7394a3293c9da7a6f0bd to your computer and use it in GitHub Desktop.
Short cut for creating new tmux session... and logging into existing one
tmux has-session -t $1
if [ $? != 0 ]
then
tmux new-session -s $1 -n editor -d
fi
tmux attach -t $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment