dotfiles/includes/bash_ssh.bash.disabled

12 lines
173 B
Bash
Raw Permalink Normal View History

#!/bin/bash
if [ -z "$SSH_AUTH_SOCK" ] ; then
eval `ssh-agent -s`
fi
KEY="$HOME/.ssh/work"
[ -f $KEY ] || return;
ssh-add -l | grep $KEY > /dev/null || ssh-add $KEY