dotfiles/includes/bash_ssh.bash
Jacob Kiers 1415dec58b Add SSH Agent startup.
Signed-off-by: Jacob Kiers <jacob@alphacomm.nl>
2015-04-07 11:38:01 +02:00

12 lines
168 B
Bash

#!/bin/bash
[ -f "$HOME/.ssh/*.key" ] || return;
if [ -z "$SSH_AUTH_SOCK" ] ; then
eval `ssh-agent -s`
fi
for key in $HOME/.ssh/*.key; do
ssh-add $key
done;