Created
January 10, 2013 09:33
-
-
Save reikje/4500765 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f ${HOME}/.ssh-agent ]; then | |
. ${HOME}/.ssh-agent > /dev/null | |
fi | |
if [ -z "$SSH_AGENT_PID" -o -z "`/usr/bin/ps -a|/usr/bin/egrep \"^[ ]+$SSH_AGENT_PID\"`" ]; then | |
/usr/bin/ssh-agent > ${HOME}/.ssh-agent | |
. ${HOME}/.ssh-agent > /dev/null | |
fi | |
ssh-add ~/.ssh/id_rsa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sweet! Thanks for posting. It was a PiTA to keep typing my passphrase every time I had to push changes during an exhausting hackathon