dotfiles/.bashrc.d/ssh-agent

10 lines
406 B
Plaintext
Raw Normal View History

#--------------------------------------------------------------------------------
# Run an SSH agent, if possible
#--------------------------------------------------------------------------------
# Check if we already have an agent running and sourced
if [ -z "${SSH_AUTH_SOCK}" ]; then
2019-10-27 10:31:18 +00:00
eval $(ssh-agent)
ssh-add
fi
#--------------------------------------------------------------------------------