Created
July 11, 2017 17:30
-
-
Save cfperez/d8b3426ede238170b44652f77cc27a0e to your computer and use it in GitHub Desktop.
Attach to an existing tmux session or create a new 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
#!/bin/bash | |
ssh $@ -t -- 'tmux a || tmux new-session' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment