Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
function peco-sshconfig-ssh() {
local host=$(grep 'Host ' ~/.ssh/config | awk '{print $2}' | peco)
if [ -n "$host" ]; then
echo "ssh -F ~/.ssh/config $host"
ssh -F ~/.ssh/config $host
alias sshc='peco-sshconfig-ssh'
You can’t perform that action at this time.