From 139f3b9280e7046a0bc27563f7a0fb97f0b3affd Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 20 Mar 2022 16:40:20 +0100 Subject: [PATCH] Zsh: Add workaround for 256 colour terminals --- .config/zsh/.zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 19f7b5d..45b60fc 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -167,6 +167,9 @@ case ${TERM} in ;; esac +# Translate TrueColor to 256 colors if the terminal doesn't support it +[[ $COLORTERM = *(24bit|truecolor)* ]] || zmodload zsh/nearcolor + # Host specific settings. case $(hostname) in schnibble | gaffer | localhost)