Created
February 6, 2015 20:05
-
-
Save nyarly/ef979bd61e8ea3829f47 to your computer and use it in GitHub Desktop.
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 autotmux --on-variable TMUX_SESSION_NAME | |
| if test -n "$TMUX_SESSION_NAME" #only if set | |
| if test -z $TMUX #not if in TMUX | |
| tmux new-session -t $TMUX_SESSION_NAME; or tmux new-session -s $TMUX_SESSION_NAME | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use fish, tmux, direnv and autojump, so this lets me:
and always get put into a named Tmux session - linked to an existing one if there is one.