Created
August 12, 2016 12:25
-
-
Save kakikubo/ae639a6c9ab09d4d8940ae5d3a1b3c86 to your computer and use it in GitHub Desktop.
ssh-addを毎度しなくていいように
This file contains 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
# Setup ssh-agent | |
if [ -f ~/.ssh-agent ]; then | |
. ~/.ssh-agent | |
fi | |
if [ -z "$SSH_AGENT_PID" ] || ! kill -0 $SSH_AGENT_PID; then | |
ssh-agent > ~/.ssh-agent | |
. ~/.ssh-agent | |
fi | |
ssh-add -l >& /dev/null || ssh-add |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment