zshrc: fix ip command coloring
[grml-etc-core.git] / etc / zsh / zshrc
index 22ed162..f887427 100644 (file)
@@ -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