Skip to content

Instantly share code, notes, and snippets.

@juliorosseti
Last active November 4, 2017 02:25
Show Gist options
  • Save juliorosseti/322162629cd161ab9e13ad4a38094250 to your computer and use it in GitHub Desktop.
Save juliorosseti/322162629cd161ab9e13ad4a38094250 to your computer and use it in GitHub Desktop.
ssh-agent (cygwin)
SSHAGENT=/usr/bin/ssh-agent
SSHAGENTARGS="-s"
if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then
eval `$SSHAGENT $SSHAGENTARGS`
trap "kill $SSH_AGENT_PID" 0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment