Last active
August 31, 2017 05:08
-
-
Save ball6847/cf35ad52ade59ecf9568cf68dca86675 to your computer and use it in GitHub Desktop.
ssh-tmux - shortcut to ssh then tmux
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
ssh-tmux() { | |
ssh -t "$@" tmux new-session -A -s main | |
} | |
# use it just like usual ssh command, it will immediately run tmux on remote server with session name "main" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment