From e5fad43f120e808ed447cd3c29763c0f56505e95 Mon Sep 17 00:00:00 2001 From: Filipe Fortes Date: Wed, 18 Sep 2024 08:33:37 -0400 Subject: [PATCH] Make sure SWAYSOCK gets cleared --- stowed-files/tmux/.config/tmux/tmux.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stowed-files/tmux/.config/tmux/tmux.conf b/stowed-files/tmux/.config/tmux/tmux.conf index 318cf2c..e458394 100644 --- a/stowed-files/tmux/.config/tmux/tmux.conf +++ b/stowed-files/tmux/.config/tmux/tmux.conf @@ -157,6 +157,9 @@ if-shell 'test -z "${SSH_CONNECTION}"' { set-option -gaq status-right '%R' # }}} +# Update when creating or attaching +set-option -gq update-environment "SWAYSOCK SSH_AUTH_SOCK SSH_AGENT_PID" + # Tweak some behaviors when using SSH if-shell 'test -n "${SSH_CONNECTION}"' { # Use a different prefix when using SSH in order to make nesting easier