X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=8ff4dde28135abd3567867cc7797b042a924fe72;hb=71d9deccfa42338806229f048f75248859d100a0;hp=435334e79860346cffde53c14e002f9f18b6751c;hpb=f444c52ee3ccb55bb312a074d38484a1b42c26c9;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 435334e..8ff4dde 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2677,6 +2677,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 @@ -3308,7 +3313,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