From 9739012193d5182ea54ded5166bf74edc1d4f461 Mon Sep 17 00:00:00 2001 From: lawrence3699 Date: Mon, 20 Apr 2026 03:52:12 +1000 Subject: [PATCH] fix(tmux): treat xterm-direct as 256-color --- plugins/tmux/tmux.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index b1d97e98f..08cf3c7a5 100644 --- a/plugins/tmux/tmux.plugin.zsh +++ b/plugins/tmux/tmux.plugin.zsh @@ -87,8 +87,8 @@ _build_tmux_alias "tkss" "kill-session" "-t" unfunction _build_tmux_alias -# Determine if the terminal supports 256 colors -if [[ $terminfo[colors] == 256 ]]; then +# Determine if the terminal supports at least 256 colors +if [[ $terminfo[colors] -ge 256 ]]; then export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITH_256COLOR else export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITHOUT_256COLOR