Only set 'SSH_AUTH_SOCK' out of ssh session

master
Hektor Misplon 2024-12-14 17:51:45 +01:00
parent ae567ecb58
commit 64b0958236
1 changed files with 6 additions and 0 deletions

View File

@ -109,3 +109,9 @@ export JUPYTERLAB_DIR=$HOME/.local/share/jupyter/lab
# Zettelkasten {{{ # Zettelkasten {{{
export ZK_PATH="$HOME/.zk" export ZK_PATH="$HOME/.zk"
# SSH Agent {{{
if [[ -z "${SSH_CONNECTION}" ]]; then
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
fi
# }}}