From 55d660a548cbeb8cb3b6975cc67fa1b0b031a4e8 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 28 Nov 2025 09:42:48 +0000 Subject: [PATCH] Do not remove TERM etc for commands run from config file, reported by Dennis Eriksen. --- environ.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/environ.c b/environ.c index fb1c4902..0b4b3c31 100644 --- a/environ.c +++ b/environ.c @@ -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)