diff options
author | nicm <nicm> | 2020-05-16 15:40:44 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-05-16 15:40:44 +0000 |
commit | 4e053685df9f4d1c398148712ab0529a7e9d32e7 (patch) | |
tree | 19306100759e73fa489c8f058779c5b57bfe1180 | |
parent | beb214bcb3e2a76e153d0570aed72454b9748a9b (diff) | |
download | rtmux-4e053685df9f4d1c398148712ab0529a7e9d32e7.tar.gz rtmux-4e053685df9f4d1c398148712ab0529a7e9d32e7.tar.bz2 rtmux-4e053685df9f4d1c398148712ab0529a7e9d32e7.zip |
Export TERM_PROGRAM and TERM_PROGRAM_VERSION like various other
terminals.
-rw-r--r-- | environ.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |