helm/zsh/completion

9 lines
313 B
Plaintext
Raw Normal View History

2013-08-04 02:06:05 -07:00
autoload -Uz compinit && compinit
2013-03-03 05:49:37 -08:00
# Add tab completion for SSH hostnames based on ~/.ssh/config, ignoring wildcards
2013-08-17 01:33:12 -07:00
if [ -e "$HOME/.ssh/config" ]; then
zstyle -e ':completion::*:*:*:hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) /dev/null)"}%%[# ]*}//,/ })'
fi
2013-03-22 18:10:59 -07:00
# vim:set ft=zsh: