mirror of
https://github.com/tmux/tmux.git
synced 2025-01-13 03:48:51 +00:00
Export TERM_PROGRAM and TERM_PROGRAM_VERSION like various other terminals.
This commit is contained in:
parent
9991a14e81
commit
63390d2dd6
@ -252,6 +252,8 @@ environ_for_session(struct session *s, int no_TERM)
|
|||||||
if (!no_TERM) {
|
if (!no_TERM) {
|
||||||
value = options_get_string(global_options, "default-terminal");
|
value = options_get_string(global_options, "default-terminal");
|
||||||
environ_set(env, "TERM", 0, "%s", value);
|
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)
|
if (s != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user