Skip to content
Discussion options

You must be logged in to vote

Took a quick look and this is actually pretty easy to fix. Ghostty just has to use SendEnv instead of SetEnv, since SendEnv adds rather than replaces. Basically, replace

ssh -o "SetEnv FOO=bar" user@host

with

FOO=bar ssh -o "SendEnv FOO" user@host

The behavior you're reporting is definitely problematic, so this seems worthwhile to fix.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jparise
Comment options

jparise Mar 16, 2026
Collaborator

Answer selected by jparise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment