ssh: use same agent path everywhere so tmux stays sane

This commit is contained in:
Daniel Lundin 2023-06-14 09:46:47 +02:00
parent 2c730982ed
commit 7821afe73f
2 changed files with 2 additions and 2 deletions

View file

@ -1,3 +1,3 @@
if [[ -S "$SSH_AUTH_SOCK" && ! -h "$SSH_AUTH_SOCK" ]]; then
ln -sf "$SSH_AUTH_SOCK" "${XDG_RUNTIME_DIR}/ssh-agent.socket";
ln -sf "$SSH_AUTH_SOCK" "${XDG_RUNTIME_DIR}/gcr/ssh";
fi

View file

@ -17,7 +17,7 @@ set-option -g mouse on
set -g set-clipboard on
bind-key ] paste-buffer -p
set-environment -g "SSH_AUTH_SOCK" "$XDG_RUNTIME_DIR/ssh-agent.socket"
set-environment -g "SSH_AUTH_SOCK" "$XDG_RUNTIME_DIR/gcr/ssh"
set -g update-environment "BUILDCOMMAND GOPACKAGESDRIVER SSH_AUTH_SOCK SSH_CONNECTION"
set -g default-command zsh
set -g history-limit 10000