mirror of
https://github.com/tmux/tmux.git
synced 2025-12-21 06:46:08 +00:00
Do not remove TERM etc for commands run from config file, reported by
Dennis Eriksen.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user