diff options
| author | Paul Buetow <paul@buetow.org> | 2026-06-09 22:28:22 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-06-09 22:28:22 +0300 |
| commit | cf708dd48a21682897d39c4cf85173a6238491ac (patch) | |
| tree | 83de68e9c1d6ab92de9027aff66dc0785436787b | |
| parent | fd5976e16281feab4c69588f3d13285e5b0ef175 (diff) | |
rocky-vm-setup: tmux COLORTERM pass-through for helix truecolor
| -rw-r--r-- | prompts/skills/rocky-vm-setup/SKILL.md | 3 | ||||
| -rw-r--r-- | prompts/skills/rocky-vm-setup/references/tmux.md | 12 |
2 files changed, 14 insertions, 1 deletions
diff --git a/prompts/skills/rocky-vm-setup/SKILL.md b/prompts/skills/rocky-vm-setup/SKILL.md index cf287e8..f21061a 100644 --- a/prompts/skills/rocky-vm-setup/SKILL.md +++ b/prompts/skills/rocky-vm-setup/SKILL.md @@ -114,6 +114,9 @@ set -g window-status-current-format ' #I*#[bg=brightred,fg=white] #W ' # TERM inside tmux — must advertise 256 colors so helix/fzf/etc work set -g default-terminal 'tmux-256color' set -ga terminal-overrides ',xterm-256color:Tc,*-256color:Tc' + +# Pass COLORTERM through from outer SSH session so helix knows truecolor is available +set -g update-environment 'DISPLAY SSH_ASKPASS SSH_AGENT_LAUNCHER SSH_AUTH_SOCK SSH_CONNECTION SSH_TTY WINDOWID XAUTHORITY TERM COLORTERM' ``` This is deployed by the `home_tmux_rocky` Rex task (runs only when `hostname =~ /rocky/`). diff --git a/prompts/skills/rocky-vm-setup/references/tmux.md b/prompts/skills/rocky-vm-setup/references/tmux.md index 42ce58e..c861d78 100644 --- a/prompts/skills/rocky-vm-setup/references/tmux.md +++ b/prompts/skills/rocky-vm-setup/references/tmux.md @@ -59,4 +59,14 @@ set -g default-terminal 'tmux-256color' set -ga terminal-overrides ',xterm-256color:Tc,*-256color:Tc' ``` -Without this, tmux defaults to `TERM=screen` (8 colors) and helix themes break. +Without `default-terminal`, tmux defaults to `TERM=screen` (8 colors). + +### Truecolor (24-bit / 16777216 colors) + +For truecolor themes in helix, `COLORTERM=truecolor` must also be present inside tmux. tmux strips it by default via `update-environment`. Pass it through: + +```sh +set -g update-environment '... TERM COLORTERM' +``` + +Without this, helix sees `COLORTERM=` and falls back to 256 colors only, breaking truecolor themes. |
