X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;fp=etc%2Fzsh%2Fzshrc;h=22ed16228d1e26b47322bd34b041f544aa5d458d;hp=89684e48982bf538419f3200e29827a2ac3c59c4;hb=6e8ffd2ea9534d91df0f86d6b7d9bc972164cd0e;hpb=c979eb86607ba4e7bf66b950314c002aa537f018 diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 89684e4..22ed162 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -894,7 +894,7 @@ function grmlcomp () { if is42 ; then [[ -r ~/.ssh/config ]] && _ssh_config_hosts=(${${(s: :)${(ps:\t:)${${(@M)${(f)"$(<$HOME/.ssh/config)"}:#Host *}#Host }}}:#*[*?]*}) || _ssh_config_hosts=() [[ -r ~/.ssh/known_hosts ]] && _ssh_hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=() - [[ -r /etc/hosts ]] && [[ "$NOETCHOSTS" -eq 0 ]] && : ${(A)_etc_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$(