Start ssh-agent via bash startup

Export SSH_AUTH_SOCK and start ssh-agent using this socket.
This commit is contained in:
c47 2024-02-03 09:47:47 +01:00
parent a0d247f2bf
commit 24dfbcb366

View file

@ -132,3 +132,9 @@ if [[ -f ${HOME}/.bashrc.local ]]; then
fi
export PATH=${HOME}/.local/bin:${HOME}/.nix-profile/bin:${PATH}
export SSH_AUTH_SOCK=~/.ssh/ssh-agent.sock
if [[ ! $(pidof ssh-agent) ]]; then
eval $(ssh-agent -a ${SSH_AUTH_SOCK})
fi