projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zshrc: use ip from iproute2 with color support
[grml-etc-core.git]
/
etc
/
zsh
/
zshrc
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
a992e3f
..
773c57a
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-2572,7
+2572,7
@@
function grml_reset_screen_title () {
# see http://www.faqs.org/docs/Linux-mini/Xterm-Title.html
[[ ${NOTITLE:-} -gt 0 ]] && return 0
case $TERM in
# see http://www.faqs.org/docs/Linux-mini/Xterm-Title.html
[[ ${NOTITLE:-} -gt 0 ]] && return 0
case $TERM in
- (xterm*|rxvt*|alacritty)
+ (xterm*|rxvt*|alacritty
|foot
)
set_title ${(%):-"%n@%m: %~"}
;;
esac
set_title ${(%):-"%n@%m: %~"}
;;
esac
@@
-2609,7
+2609,7
@@
function grml_cmd_to_screen_title () {
function grml_control_xterm_title () {
case $TERM in
function grml_control_xterm_title () {
case $TERM in
- (xterm*|rxvt*|alacritty)
+ (xterm*|rxvt*|alacritty
|foot
)
set_title "${(%):-"%n@%m:"}" "$2"
;;
esac
set_title "${(%):-"%n@%m:"}" "$2"
;;
esac
@@
-2676,6
+2676,11
@@
else
alias l='command ls -l'
fi
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
if [[ -r /proc/mdstat ]]; then
alias mdstat='cat /proc/mdstat'
fi