diff options
author | 2020-05-16 15:40:44 +0000 | |
---|---|---|
committer | 2020-05-16 15:40:44 +0000 | |
commit | 381ed4201d6e1f2333fda6f01d72fbb5aa95029c (patch) | |
tree | f799192680a7c1978aa37294ceac90d0b4bf1a3e | |
parent | Add formats for after hook command arguments. (diff) | |
download | wireguard-openbsd-381ed4201d6e1f2333fda6f01d72fbb5aa95029c.tar.xz wireguard-openbsd-381ed4201d6e1f2333fda6f01d72fbb5aa95029c.zip |
Export TERM_PROGRAM and TERM_PROGRAM_VERSION like various other
terminals.
-rw-r--r-- | usr.bin/tmux/environ.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/environ.c b/usr.bin/tmux/environ.c index 323a4025a83..34251b4db90 100644 --- a/usr.bin/tmux/environ.c +++ b/usr.bin/tmux/environ.c @@ -1,4 +1,4 @@ -/* $OpenBSD: environ.c,v 1.24 2020/03/31 17:14:40 nicm Exp $ */ +/* $OpenBSD: environ.c,v 1.25 2020/05/16 15:40:44 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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) |