X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=2ab3f85de453b263ae5d86705e0d72b57d3777fa;hp=09ebfc7c4aa82f11492926ce27b00a47c937943e;hb=8b1e79874cc126a10e01f98a4d0b1b93aca1cb9a;hpb=a66d7b87366e0ac4054f03b3b7a0a94024885fee diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 09ebfc7..2ab3f85 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -764,14 +764,17 @@ grmlcomp() { # host completion if is42 ; then + [[ -r ~/.ssh/config ]] && _ssh_config_hosts=(${${${(@M)${(f)"$(cat $HOME/.ssh/config)"}:#Host *}#Host }:#*[*?]*}) || _ssh_config_hosts=() [[ -r ~/.ssh/known_hosts ]] && _ssh_hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=() [[ -r /etc/hosts ]] && : ${(A)_etc_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$(