[F] Fix auto tmux compatibility with ssh agent
This commit is contained in:
@@ -4,6 +4,7 @@ set-option -g history-limit 10000
|
||||
# set -g default-shell zsh
|
||||
set -g base-index 1
|
||||
set -g renumber-windows on
|
||||
set -g update-environment "DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"
|
||||
|
||||
# Status bar background style
|
||||
set -g status-style 'bg=#ffffff,fg=#333333'
|
||||
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Keep a stable SSH agent socket path for tmux panes across reconnects.
|
||||
if [ -S "$SSH_AUTH_SOCK" ]; then
|
||||
ln -sf "$SSH_AUTH_SOCK" "$HOME/.ssh/current_agent.sock"
|
||||
fi
|
||||
Reference in New Issue
Block a user