files/ssh

8 lines
139 B
Bash
Executable File

#!/bin/bash
if [[ "$(ssh-add -l | grep -i joshs_key)" == "" ]]; then
ssh-add $HOME/.ssh/joshs_key </dev/null
fi
exec /usr/bin/ssh "$@"