X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=9ae63af559ea9164702afbb6f909c8f0bae83fdc;hb=e27d36095d863e19f2d50cbf6423607518778df5;hp=8ff4dde28135abd3567867cc7797b042a924fe72;hpb=71d9deccfa42338806229f048f75248859d100a0;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 8ff4dde..9ae63af 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)~~"$(/dev/null 2>&1; then - alias ip='command ip --color=auto' +if ip -color=auto addr show dev lo >/dev/null 2>&1; then + alias ip='command ip -color=auto' fi if [[ -r /proc/mdstat ]]; then