Skip to content

Instantly share code, notes, and snippets.

@kakikubo
Created August 12, 2016 12:25
Show Gist options
  • Save kakikubo/ae639a6c9ab09d4d8940ae5d3a1b3c86 to your computer and use it in GitHub Desktop.
Save kakikubo/ae639a6c9ab09d4d8940ae5d3a1b3c86 to your computer and use it in GitHub Desktop.
ssh-addを毎度しなくていいように
# 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