Merge remote-tracking branch 'origin/github/pr/127'
authorMichael Prokop <mika@grml.org>
Mon, 8 Nov 2021 15:39:47 +0000 (16:39 +0100)
committerMichael Prokop <mika@grml.org>
Mon, 8 Nov 2021 15:39:47 +0000 (16:39 +0100)
etc/zsh/zshrc

index 29b8b86..773c57a 100644 (file)
@@ -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