From cb3df7c03c2ba6087f1ee145cf179ccc1bb432f1 Mon Sep 17 00:00:00 2001 From: Anton Volnuhin Date: Mon, 2 Mar 2026 21:08:22 +0300 Subject: [PATCH] ensure true color support in zsh for Ghostty and other capable terminals Co-Authored-By: Claude Opus 4.6 --- dot_zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dot_zshrc b/dot_zshrc index b15de90..37a71a2 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -1,5 +1,12 @@ autoload -Uz compinit && compinit +# Ensure true color support for capable terminals +case "$TERM" in + xterm-ghostty|xterm-kitty|wezterm|*-direct) + export COLORTERM=truecolor + ;; +esac + # Powerlevel10k instant prompt (must stay near top) if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"