dotfiles/includes/bash_ssh.bash.disabled
Jacob Kiers 72c0f1b3c8 More updates
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-01-06 19:17:46 +01:00

12 lines
173 B
Bash

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