Skip to content

Instantly share code, notes, and snippets.

@BenRhouma
Created December 24, 2015 13:06
Show Gist options
  • Save BenRhouma/365d64be89d2a0b00606 to your computer and use it in GitHub Desktop.
Save BenRhouma/365d64be89d2a0b00606 to your computer and use it in GitHub Desktop.
* stop one
touch ~/.bash_profile
chmod a+x ~/.bash_profile
* stop two > bash_profile
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