helm/zsh/completion
2013-08-04 05:06:05 -04:00

7 lines
283 B
Bash

autoload -Uz compinit && compinit
# 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
# vim:set ft=zsh: