From 7821afe73f83ba89ec2a6c19bfb18109b1f80315 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Wed, 14 Jun 2023 09:46:47 +0200 Subject: [PATCH] ssh: use same agent path everywhere so tmux stays sane --- .ssh/rc | 2 +- .tmux.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ssh/rc b/.ssh/rc index f782092..556f229 100755 --- a/.ssh/rc +++ b/.ssh/rc @@ -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 diff --git a/.tmux.conf b/.tmux.conf index e1ca4e7..1d88b6e 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -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