Start ssh-agent via bash startup
Export SSH_AUTH_SOCK and start ssh-agent using this socket.
This commit is contained in:
parent
a0d247f2bf
commit
24dfbcb366
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue