Created
August 23, 2018 17:30
-
-
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
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
# 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