helm/zsh/completion

5 lines
248 B
Plaintext
Raw Normal View History

2013-03-03 05:49:37 -08:00
# Add tab completion for SSH hostnames based on ~/.ssh/config, ignoring wildcards
[ -e "$HOME/.ssh/config" ] && complete -o "default" -o "nospace" -W "$(grep "^Host" ~/.ssh/config | grep -v "[?*]" | cut -d " " -f2)" scp sftp ssh
2013-03-22 18:10:59 -07:00
# vim:set ft=zsh: