ensure true color support in zsh for Ghostty and other capable terminals

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Anton Volnuhin 2026-03-02 21:08:22 +03:00
parent 00791e39be
commit cb3df7c03c

View File

@ -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"