zshuper/functions/hosts-completion.zsh
2016-06-19 04:11:34 +03:00

8 lines
153 B
Bash

hosts=(
$(
([ -r .ssh/known_hosts ] && awk '{print $1}' .ssh/known_hosts | tr , '\n') | sort -u
)
)
zstyle ':completion:*' hosts $hosts