From: Christian Hesse Date: Wed, 27 Oct 2021 16:31:06 +0000 (+0200) Subject: zshrc: use ip from iproute2 with color support X-Git-Tag: v0.19.1~6^2 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=ae49957322c648fcd64b7e73485cb06f4b694207 zshrc: use ip from iproute2 with color support Closes #126 --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 29b8b86..773c57a 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2676,6 +2676,11 @@ else alias l='command ls -l' fi +# use ip from iproute2 with color support +if ip --color=auto addr >/dev/null 2>&1; then + alias ip='command ip --color=auto' +fi + if [[ -r /proc/mdstat ]]; then alias mdstat='cat /proc/mdstat' fi