Hacker News
points by rocmcd 2 days ago | 0 comments
It's actually the remote machine that isn't working, but I get the frustration. What I did to fix this is to override the environment variables in your SSH config like this:

Host * SetEnv TERM=xterm-256color

[–] spurgu 13 hours ago
For me that wasn't enough, I added:

    Host *
        SetEnv TERM=xterm-256color
        SendEnv COLORTERM TERM_PROGRAM TERM_PROGRAM_VERSION
[–] exographicskip 1 day ago
That’s a neat trick! Didn’t know setting env vars was possible in ssh configs
[–] nasretdinov 1 day ago
Not all environment variables will be passed through (depends on the server configuration), but stuff like TERM should