``` # Hostnames completion. zstyle -e ':completion:*:hosts' hosts 'reply=( ${${${${${(f)"$(<${HOME}/.ssh/known_hosts)"//\[/}//\]:/ }:#[\|]*}%%\ *}%%,*} ${${${(@M)${(f)"$(<${HOME}/.ssh/config)"}:#Host *}#Host }:#*[*?]*} ${(s: :)${(ps:\t:)${${(f)~~"$(</etc/hosts)"}%%\#*}#*[[:blank:]]}} )' zstyle ':completion:*:*:*:hosts' ignored-patterns 'ip6*' 'localhost*' ```
Attachment:
signature.asc
Description: This is a digitally signed message part.