Zsh: Add workaround for 256 colour terminals
This commit is contained in:
parent
586fd06b4d
commit
139f3b9280
|
@ -167,6 +167,9 @@ case ${TERM} in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Translate TrueColor to 256 colors if the terminal doesn't support it
|
||||||
|
[[ $COLORTERM = *(24bit|truecolor)* ]] || zmodload zsh/nearcolor
|
||||||
|
|
||||||
# Host specific settings.
|
# Host specific settings.
|
||||||
case $(hostname) in
|
case $(hostname) in
|
||||||
schnibble | gaffer | localhost)
|
schnibble | gaffer | localhost)
|
||||||
|
|
Loading…
Reference in New Issue