From cc8b41f294974cdfb1ddfe3b907da58374ff130f Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 31 Mar 2020 17:14:40 +0000 Subject: Add a way to mark environment variables as "hidden" so they can be used by tmux but are not passed into the environment of new panes. --- tmux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tmux.c') diff --git a/tmux.c b/tmux.c index 60b35e5d..2055a894 100644 --- a/tmux.c +++ b/tmux.c @@ -332,9 +332,9 @@ main(int argc, char **argv) global_environ = environ_create(); for (var = environ; *var != NULL; var++) - environ_put(global_environ, *var); + environ_put(global_environ, *var, 0); if ((cwd = find_cwd()) != NULL) - environ_set(global_environ, "PWD", "%s", cwd); + environ_set(global_environ, "PWD", 0, "%s", cwd); global_options = options_create(NULL); global_s_options = options_create(NULL); -- cgit v1.2.3