Skip to content

Instantly share code, notes, and snippets.

@ball6847
Last active August 31, 2017 05:08
Show Gist options
  • Save ball6847/cf35ad52ade59ecf9568cf68dca86675 to your computer and use it in GitHub Desktop.
Save ball6847/cf35ad52ade59ecf9568cf68dca86675 to your computer and use it in GitHub Desktop.
ssh-tmux - shortcut to ssh then tmux
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