modify tmux and ssh to recover SSH_AUTH_SOCK after tmux reconnect
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user