Skip to content

Instantly share code, notes, and snippets.

@Kazuma
Created June 19, 2014 11:17
Show Gist options
  • Save Kazuma/dd59628fab82ad5dd58b to your computer and use it in GitHub Desktop.
Save Kazuma/dd59628fab82ad5dd58b to your computer and use it in GitHub Desktop.
peco-ssh.sh
#!/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