Skip to content

fix: remove TERM override that breaks tmux colors - #17

Merged
Tomeriko96 merged 1 commit into
mainfrom
fix/term-export-override
Sep 25, 2026
Merged

Tomeriko96 merged 1 commit into
mainfrom
fix/term-export-override

Conversation

@Tomeriko96

Copy link
Copy Markdown

Problem

.bashrc exports TERM=xterm-256color, overriding tmux.conf's TERM=tmux-256color setting. This breaks color rendering in tmux-based editors and applications.

Solution

Remove the hardcoded TERM export. Terminal/tmux correctly manage TERM themselves based on their context.

Impact

  • ✅ Fixes display issues in tmux + nvim
  • ✅ Respects tmux's own color configuration
  • ✅ No breaking changes (terminal still handles TERM correctly)

Test

# In tmux
echo $TERM  # Should be tmux-256color (not xterm-256color)
nvim       # Colors/display should work correctly

🤖 Generated with Claude Code

TERM was hardcoded to xterm-256color in .bashrc, overriding tmux.conf's
TERM=tmux-256color. This breaks color rendering in tmux-based editors
(nvim) and terminal applications.

Terminal/tmux correctly sets TERM themselves based on $TERM or session
type. Removing the export lets them manage this properly.

Fixes color/display issues when using the devcontainer within tmux.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

Entire-Checkpoint: 93fa1151a4ff
@Tomeriko96
Tomeriko96 merged commit 2d77984 into main Sep 25, 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