Skip to content

DOTFI-23: Add Ghostty TERM fallback to zshrc - #38

Merged
JtheGunner merged 1 commit into
mainfrom
fix/DOTFI-23-ghostty-term-fallback
Nov 23, 2026
Merged

JtheGunner merged 1 commit into
mainfrom
fix/DOTFI-23-ghostty-term-fallback

Conversation

@JtheGunner

Copy link
Copy Markdown
Owner

YouTrack: https://youtrack.xn--wrm-hoa.li/issue/DOTFI-23

Fall back to xterm-256color when TERM names Ghostty but the terminfo entry cannot be resolved (e.g. over SSH on a host without Ghostty's terminfo). The existing TERM=${TERM:-xterm-256color} line only covered an empty TERM.

  • fix: fall back to xterm-256color for unknown Ghostty terminfo

Test plan

  • bash tests/test-shell-rc.sh — covers unknown / known Ghostty terminfo, an unrelated unknown TERM, and an empty TERM (fake infocmp, independent of the host's terminfo database).
  • Independent review: PASS @ e13adfa

TERM=${TERM:-xterm-256color} only covers an empty TERM. A set but
unresolvable xterm-ghostty (e.g. over SSH to a host without Ghostty's
terminfo) stayed untouched and broke curses programs and line editing.
@JtheGunner
JtheGunner merged commit d516d8c into main Nov 23, 2026
5 checks passed
@JtheGunner
JtheGunner deleted the fix/DOTFI-23-ghostty-term-fallback branch November 23, 2026 11:17
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