dotfiles/includes/bash_ssh.bash

12 lines
168 B
Bash
Raw Normal View History

#!/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;