From 64b0958236c352386b08a768959f0e2d51bc699e Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sat, 14 Dec 2024 17:51:45 +0100 Subject: [PATCH] Only set 'SSH_AUTH_SOCK' out of ssh session --- .bashrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.bashrc b/.bashrc index 3c77caa..3cc81f9 100644 --- a/.bashrc +++ b/.bashrc @@ -109,3 +109,9 @@ export JUPYTERLAB_DIR=$HOME/.local/share/jupyter/lab # Zettelkasten {{{ export ZK_PATH="$HOME/.zk" + +# SSH Agent {{{ +if [[ -z "${SSH_CONNECTION}" ]]; then + export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" +fi +# }}}