zshrc: fix ip command coloring
authorPásztor János <model87@freemail.hu>
Tue, 21 Dec 2021 14:44:18 +0000 (15:44 +0100)
committerPásztor János <model87@freemail.hu>
Tue, 21 Dec 2021 14:44:18 +0000 (15:44 +0100)
The previous version broke auto-completion. With this fix both of them
are working properly.

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