zshuper/functions/hosts-completion.zsh

8 lines
153 B
Bash
Raw Normal View History

2016-06-19 04:11:34 +03:00
hosts=(
$(
([ -r .ssh/known_hosts ] && awk '{print $1}' .ssh/known_hosts | tr , '\n') | sort -u
)
)
zstyle ':completion:*' hosts $hosts