From a2eeed09b932495453b8d794e087837fb34ccdd3 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Wed, 12 Feb 2020 12:35:37 +0100 Subject: [PATCH] ssh: use hardcoded ssh agent path --- .zshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index cbd24b8..4a3f7cf 100644 --- a/.zshrc +++ b/.zshrc @@ -151,9 +151,14 @@ function prompt_command { eval $(tmux switch-client \; show-environment -s 2>/dev/null) } +export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock + # laptop specifics if [[ "${HOST}" = "lilbub" ]]; then - export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) + GPG_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) + if [[ "${GPG_AUTH_SOCK}" != "" ]]; then + ln -sf $GPG_AUTH_SOCK $SSH_AUTH_SOCK + fi if [[ "${TMUX}" != "" ]]; then tmux set -g status-fg "#ffebee"