Skip to content

Instantly share code, notes, and snippets.

@bjeanes
Created November 6, 2008 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjeanes/22554 to your computer and use it in GitHub Desktop.
Save bjeanes/22554 to your computer and use it in GitHub Desktop.
# Oh. My. God. Love.
alias my_server='screen -R -d -m -S my_server ssh my_user@my.server'
# With aliases like this in my .bashrc I can just type `my_server` into any terminal and be presented
# with that server connection. With enough aliases like this it means that from any terminal, I can just
# type `my_server` again and it will disconnect that session from the other window and into my current one.
# screen(1) kicks. ass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment