projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42cdb33
)
zshrc: use ip from iproute2 with color support
author
Christian Hesse
<mail@eworm.de>
Wed, 27 Oct 2021 16:31:06 +0000
(18:31 +0200)
committer
Christian Hesse
<mail@eworm.de>
Wed, 27 Oct 2021 16:31:06 +0000
(18:31 +0200)
Closes #126
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
29b8b86
..
773c57a
100644
(file)
--- 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