SSH Helper

Install fzf then add the following lines to your $HOME/.zshrc

# import fzf support for zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

function ssh2 () {
  filter=${1:-"."}
  target=$(egrep -o "Host (\b.+\b)" $HOME/.ssh/extras/* $HOME/.ssh/config | awk '{print $2}' | grep $filter | fzf -e)
  echo "Remoting into: $target"
  ssh $target
}