From: martin f. krafft Date: Wed, 7 May 2008 18:27:34 +0000 (+0100) Subject: no need for semicolons at eol X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/b289b28054f9f3764ff575b7c2abd6d023cb04cb no need for semicolons at eol --- diff --git a/.zsh/zshrc/20_compsys b/.zsh/zshrc/20_compsys index 3003f88..76243ca 100644 --- a/.zsh/zshrc/20_compsys +++ b/.zsh/zshrc/20_compsys @@ -48,9 +48,9 @@ zstyle ':completion:*:(all-|)files' ignored-patterns \ '*.bk' '*.bak' '*.old' '*~' '.*.sw?' # populate hosts completion with SSH's known_hosts -local _myhosts; +local _myhosts _myhosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[0-9]*}%%\ *}%%,*}) -zstyle ':completion:*' hosts $_myhosts; +zstyle ':completion:*' hosts $_myhosts zstyle -e ':completion:*:approximate:*' max-errors 'reply=($((($#PREFIX+$#SUFFIX)/3)) numeric )'