Created
February 10, 2017 15:53
-
-
Save perigrin/af95fce85bfd5b8fdfd89097f91658b1 to your computer and use it in GitHub Desktop.
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_BIN=`which ssh` | |
alias machine_list="cat ~/.ssh/config | egrep '^Host' | grep -v '\*' | cut -d ' ' -f 2" | |
# Setup SSH aliases | |
for MACHINE in `machine_list` | |
do | |
alias $MACHINE="TERM=xterm-256color $SSH_BIN $MACHINE" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment