From 0de094ea19e18327c3151ad633efc05b8749b7ab Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:42 +0100 Subject: feat(ghostty): enable ssh-env and ssh-terminfo shell integration Remote hosts without xterm-ghostty terminfo print 'xterm-ghostty: unknown terminal type' on connect. Ghostty's shell integration ships two features for this: - ssh-terminfo: pipes `infocmp -x xterm-ghostty` to the remote and installs it under ~/.terminfo on first connect, permanently fixing TERM recognition on hosts where you have a writable home. - ssh-env: falls back to TERM=xterm-256color (plus COLORTERM=truecolor and TERM_PROGRAM=ghostty) for the ssh subprocess, so hosts where terminfo install fails or home is read-only still get sane defaults. Both required shell-integration to be on, which it already is (zsh). --- dot_config/ghostty/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/ghostty/config b/dot_config/ghostty/config index ea93d9c..8a1faf6 100644 --- a/dot_config/ghostty/config +++ b/dot_config/ghostty/config @@ -4,7 +4,7 @@ theme = Gruvbox Dark # Cursor — block blink; disable shell integration cursor override cursor-style = block cursor-style-blink = true -shell-integration-features = no-cursor +shell-integration-features = no-cursor,ssh-env,ssh-terminfo # OSC 52 clipboard for zellij (default is "ask" which prompts each time) clipboard-read = allow -- cgit v1.3.1