From: Michael Prokop Date: Mon, 29 Nov 2021 09:44:16 +0000 (+0100) Subject: zshrc: do not unconditionally overwrite $COLORTERM X-Git-Tag: v0.19.1~5^2 X-Git-Url: https://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=69255e617abd0d063240d11f975b2fecf94d758e zshrc: do not unconditionally overwrite $COLORTERM Some terminal emulators set COLORTERM=truecolor, do not overwrite those. Closes: #131 --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 773c57a..8ac9d7d 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3312,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