Created
June 19, 2014 11:17
-
-
Save Kazuma/dd59628fab82ad5dd58b to your computer and use it in GitHub Desktop.
peco-ssh.sh
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
#!/bin/sh | |
# | |
# peco-ssh | |
# | |
_peco_selected_host() { | |
cat ~/.ssh/config | awk '$1 == "Host" { print $2 }' | peco | |
} | |
ssh `_peco_selected_host` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment