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:
bcb3ffa
)
zshrc: make ip touch interface lo only
author
Christian Hesse
<mail@eworm.de>
Fri, 3 Dec 2021 12:19:33 +0000
(13:19 +0100)
committer
Christian Hesse
<mail@eworm.de>
Fri, 3 Dec 2021 12:19:33 +0000
(13:19 +0100)
This reduces cpu cycles, but interface `lo` has to be available
for the check to succeed.
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
773c57a
..
ef2d716
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-2677,7
+2677,7
@@
else
fi
# use ip from iproute2 with color support
-if ip --color=auto addr >/dev/null 2>&1; then
+if ip --color=auto addr
show dev lo
>/dev/null 2>&1; then
alias ip='command ip --color=auto'
fi