Skip to content

fix: add default-terminal tmux-256color to Gentoo .tmux.conf#48

Merged
stanfish06 merged 1 commit into
masterfrom
claude/pensive-keller-0ecSL
May 8, 2026
Merged

fix: add default-terminal tmux-256color to Gentoo .tmux.conf#48
stanfish06 merged 1 commit into
masterfrom
claude/pensive-keller-0ecSL

Conversation

@stanfish06
Copy link
Copy Markdown
Owner

Problem

gentoo/configs-TF-X220/home-stan/.tmux.conf was added (May 6) with only two lines — no default-terminal set. Without it tmux falls back to screen, which has no true-color support and breaks RGB highlighting in neovim and other apps. This is the same class of bug that PRs #16, #22, and #34 fixed for the other tmux configs in this repo.

Fix

Add set -g default-terminal "tmux-256color" and set -sa terminal-features ',xterm-256color:RGB', matching the established pattern. The xterm-256color RGB override is correct because alacritty/alacritty.toml sets TERM = "xterm-256color" in [env], so tmux needs to know that outer terminal supports RGB.

Before

set -s set-clipboard on
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."

After

set -g default-terminal "tmux-256color"
set -sa terminal-features ',xterm-256color:RGB'
set -s set-clipboard on
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."

Test plan

  • tmux source ~/.tmux.conf on the TF-X220 — no errors
  • tmux info | grep Tc — RGB/Tc reported
  • True-color test in neovim works

Generated by Claude Code

@stanfish06 stanfish06 merged commit 9605199 into master May 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant