1
0

modify tmux and ssh to recover SSH_AUTH_SOCK after tmux reconnect

This commit is contained in:
2025-05-03 14:29:16 +01:00
parent b413b1eca8
commit b74c1777b5
2 changed files with 11 additions and 0 deletions

View File

@@ -21,3 +21,7 @@ if-shell -b '[ "$(echo "$TMUX_VERSION >= 3.3" | bc)" = 1 ]' {
set-option -a terminal-features 'xterm-256color:RGB'
set-option -sg escape-time 10
set-option -g focus-events on
# fix ssh agent when tmux is detached
set -g update-environment -r
set-environment -g 'SSH_AUTH_SOCK' ~/.ssh/ssh_auth_sock