From 63390d2dd65e3294d958b579fbdff365a5eabe76 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 5 May 2020 06:31:14 +0100 Subject: Export TERM_PROGRAM and TERM_PROGRAM_VERSION like various other terminals. --- environ.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'environ.c') diff --git a/environ.c b/environ.c index 0ce717df..940109b0 100644 --- a/environ.c +++ b/environ.c @@ -252,6 +252,8 @@ environ_for_session(struct session *s, int no_TERM) if (!no_TERM) { value = options_get_string(global_options, "default-terminal"); environ_set(env, "TERM", 0, "%s", value); + environ_set(env, "TERM_PROGRAM", 0, "%s", "tmux"); + environ_set(env, "TERM_PROGRAM_VERSION", 0, "%s", getversion()); } if (s != NULL) -- cgit