Add some other obvious variables to update-environment (WINDOWID SSH_ASKPASS

SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION) so they are updated in the session
environment on new/attach.
This commit is contained in:
Nicholas Marriott 2009-08-23 18:21:02 +00:00
parent a910b38a35
commit 90400ae96a
2 changed files with 3 additions and 2 deletions

2
tmux.1
View File

@ -1343,7 +1343,7 @@ was given to the
.Ic set-environment .Ic set-environment
command). command).
The default is The default is
.Ev DISPLAY . "DISPLAY WINDOWID SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION".
.It Xo Ic visual-activity .It Xo Ic visual-activity
.Op Ic on | off .Op Ic on | off
.Xc .Xc

3
tmux.c
View File

@ -381,7 +381,8 @@ main(int argc, char **argv)
options_set_number(&global_s_options, "status-utf8", 0); options_set_number(&global_s_options, "status-utf8", 0);
options_set_string(&global_s_options, options_set_string(&global_s_options,
"terminal-overrides", "*88col*:colors=88,*256col*:colors=256"); "terminal-overrides", "*88col*:colors=88,*256col*:colors=256");
options_set_string(&global_s_options, "update-environment", "DISPLAY"); options_set_string(&global_s_options, "update-environment", "DISPLAY "
"WINDOWID SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION");
options_set_number(&global_s_options, "visual-activity", 0); options_set_number(&global_s_options, "visual-activity", 0);
options_set_number(&global_s_options, "visual-bell", 0); options_set_number(&global_s_options, "visual-bell", 0);
options_set_number(&global_s_options, "visual-content", 0); options_set_number(&global_s_options, "visual-content", 0);