Created
January 15, 2015 10:13
-
-
Save carlosroman/7394a3293c9da7a6f0bd to your computer and use it in GitHub Desktop.
Short cut for creating new tmux session... and logging into existing one
This file contains 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
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