From: Pásztor János Date: Tue, 21 Dec 2021 14:44:18 +0000 (+0100) Subject: zshrc: fix ip command coloring X-Git-Tag: v0.19.1~1^2 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=e54fa78f35cb62dbe3aaa99100e459dc4ebfd902 zshrc: fix ip command coloring The previous version broke auto-completion. With this fix both of them are working properly. --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 22ed162..f887427 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2678,8 +2678,8 @@ else fi # use ip from iproute2 with color support -if ip --color=auto addr show dev lo >/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