shell-integration: fix ssh-env SetEnv clobbering user SSH config

This commit is contained in:
John Mars
2026-03-15 01:50:32 -04:00
parent c9236558b1
commit 69554f414c
5 changed files with 10 additions and 14 deletions

View File

@@ -12,9 +12,9 @@ export module ghostty {
# `ssh-env`: use xterm-256color and propagate COLORTERM/TERM_PROGRAM vars
if (has_feature "ssh-env") {
$ssh_env.TERM = "xterm-256color"
$ssh_env.COLORTERM = "truecolor"
$ssh_opts = [
"-o" "SetEnv COLORTERM=truecolor"
"-o" "SendEnv TERM_PROGRAM TERM_PROGRAM_VERSION"
"-o" "SendEnv COLORTERM TERM_PROGRAM TERM_PROGRAM_VERSION"
]
}