Created
June 14, 2016 11:37
-
-
Save trq/eeaab4f3972d217c5b5797294150945d 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 [ ! -S ~/.ssh/ssh_auth_sock ]; then | |
eval `ssh-agent` | |
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock | |
fi | |
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock | |
ssh-add -l | grep "The agent has no identities" && ssh-add |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment