Append to update-environment list.
authorIain Patterson <me@iain.cx>
Wed, 3 Nov 2010 15:27:22 +0000 (15:27 +0000)
committerIain Patterson <me@iain.cx>
Fri, 26 Nov 2010 15:39:33 +0000 (15:39 +0000)
Appending KRB5CCNAME to the list of environment variables to be
preserved in tmux sessions is more elegant than replacing the
original list.

.tmux.conf

index 60cfd34..2701393 100644 (file)
@@ -10,7 +10,7 @@ set -g status-keys vi
 set -s escape-time 100
 
 # Ensure KRB5CCNAME is preserved in the environment.
 set -s escape-time 100
 
 # Ensure KRB5CCNAME is preserved in the environment.
-set -g update-environment 'DISPLAY WINDOWID SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION KRB5CCNAME'
+set -a -g update-environment ' KRB5CCNAME'
 
 # Clock.
 setw -g clock-mode-colour white
 
 # Clock.
 setw -g clock-mode-colour white