Skip to content

Instantly share code, notes, and snippets.

@dougblackjr
Created August 23, 2018 17:30
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 dougblackjr/1d7964702ac987f241cba5d910ac0408 to your computer and use it in GitHub Desktop.
Save dougblackjr/1d7964702ac987f241cba5d910ac0408 to your computer and use it in GitHub Desktop.
Bash alias to help you if you have a bunch of SSH hostnames you forget constantly
# Add this to your ~/.bash_profile and restart your terminal
alias sshhosts="grep -w -i "Host" ~/.ssh/config | sed 's/Host//'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment