Do not remove TERM etc for commands run from config file, reported by

Dennis Eriksen.
This commit is contained in:
nicm
2025-11-28 09:42:48 +00:00
parent dfaf47d97c
commit 55d660a548

View File

@@ -263,11 +263,6 @@ environ_for_session(struct session *s, int no_TERM)
environ_set(env, "TERM_PROGRAM", 0, "%s", "tmux");
environ_set(env, "TERM_PROGRAM_VERSION", 0, "%s", getversion());
environ_set(env, "COLORTERM", 0, "truecolor");
} else {
environ_unset(env, "TERM");
environ_unset(env, "TERM_PROGRAM");
environ_unset(env, "TERM_PROGRAM_VERSION");
environ_unset(env, "COLORTERM");
}
if (s != NULL)