projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcb3ffa
)
zshrc: do not unconditionally overwrite $COLORTERM
author
Michael Prokop
<mika@grml.org>
Mon, 29 Nov 2021 09:44:16 +0000
(10:44 +0100)
committer
Michael Prokop
<mika@grml.org>
Mon, 29 Nov 2021 09:44:16 +0000
(10:44 +0100)
Some terminal emulators set COLORTERM=truecolor, do not overwrite those.
Closes: #131
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
773c57a
..
8ac9d7d
100644
(file)
--- 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