From 8ec8e4b34c69ac58fcee085b2043b456f647e4a1 Mon Sep 17 00:00:00 2001 From: Preston Hunt Date: Fri, 28 Aug 2026 12:21:07 -0700 Subject: [PATCH] zsh: stop overriding TERM from the shell rc Hard-coding TERM=xterm-256color in .zshrc clobbers whatever the terminal emulator and multiplexer set: kitty exports xterm-kitty and tmux exports tmux-256color. Overriding both defeats the purpose of install_kitty_terminfo ("install kitty terminfo so tmux and vim work correctly") and costs true-colour and undercurl detection in neovim, which sets termguicolors in init.lua. TERM is the terminal's responsibility, not the shell's. Co-Authored-By: Claude Opus 5 (1M context) --- prestobuntu.zsh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prestobuntu.zsh b/prestobuntu.zsh index 806ef91..969a89e 100644 --- a/prestobuntu.zsh +++ b/prestobuntu.zsh @@ -2,7 +2,10 @@ export PATH="$HOME/.local/bin:$PATH" export VISUAL=vim export EDITOR=$VISUAL export LS_COLORS="ln=4:di=1;36" # underline links, dirs bright blue -export TERM=xterm-256color +# NOTE: do not set TERM here. The terminal emulator (kitty sets +# xterm-kitty) and tmux (tmux-256color) already set it correctly, and +# overriding it from the shell rc loses true-colour and undercurl +# detection. See install_kitty_terminfo in setup. setopt autocd