From 63079fa9f65b439ddf6eefb2b0bb552bd8d4d729 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Tue, 14 Mar 2023 13:50:51 +0100 Subject: tmux: update some env variables when creating / attaching sessions --- common/commandline/tmux.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/commandline/tmux.nix b/common/commandline/tmux.nix index 72c918c..ccb6ad0 100644 --- a/common/commandline/tmux.nix +++ b/common/commandline/tmux.nix @@ -61,6 +61,9 @@ in { bind % split-window -h -c "#{pane_current_path}" bind '"' split-window -v -c "#{pane_current_path}" + # Update these environment variables when creating or attaching to a session + set-option -g update-environment "SSH_AUTH_SOCK WINDOWID SSH_CONNECTION DISPLAY SWAYSOCK" + # Colorscheme set-option -g status-style 'fg=${colors.dimForeground}, bg=${colors.background}' -- cgit v1.2.3