X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=8ac9d7da20f70d85e085debcdddeb97cf1c107a1;hb=69255e617abd0d063240d11f975b2fecf94d758e;hp=a992e3f5c7bc72f6897b0c9a7ab9db95db3d53a9;hpb=1ec795d38a6b637f2c0d1cd219a0b12eab8e3a1e;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index a992e3f..8ac9d7d 100644 --- 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 - (xterm*|rxvt*|alacritty) + (xterm*|rxvt*|alacritty|foot) set_title ${(%):-"%n@%m: %~"} ;; esac @@ -2609,7 +2609,7 @@ function grml_cmd_to_screen_title () { function grml_control_xterm_title () { case $TERM in - (xterm*|rxvt*|alacritty) + (xterm*|rxvt*|alacritty|foot) set_title "${(%):-"%n@%m:"}" "$2" ;; esac @@ -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 @@ -3307,7 +3312,14 @@ zrcautoload lookupinit && lookupinit # variables # set terminal property (used e.g. by msgid-chooser) -export COLORTERM="yes" +case "${COLORTERM}" in + truecolor) + # do not overwrite + ;; + *) + export COLORTERM="yes" + ;; +esac # aliases