X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=8ac9d7da20f70d85e085debcdddeb97cf1c107a1;hb=69255e617abd0d063240d11f975b2fecf94d758e;hp=29b8b86b8068fa2729956e935d5542bd349ff7b0;hpb=42cdb33949473fc89a15b5ad0e8c202799f93b4a;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 29b8b86..8ac9d7d 100644 --- 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 @@ -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