diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-05 06:31:14 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-05 06:31:14 +0100 |
commit | 63390d2dd65e3294d958b579fbdff365a5eabe76 (patch) | |
tree | 3052d888542d38893b2f7ee0c79e1dd9aeaf20d1 | |
parent | 9991a14e8105b0b8e6f2baaec3ed50d1fb54f009 (diff) | |
download | rtmux-63390d2dd65e3294d958b579fbdff365a5eabe76.tar.gz rtmux-63390d2dd65e3294d958b579fbdff365a5eabe76.tar.bz2 rtmux-63390d2dd65e3294d958b579fbdff365a5eabe76.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) |