Skip to content

Instantly share code, notes, and snippets.

@charly-vega
Created September 25, 2015 14:44
Show Gist options
  • Save charly-vega/185171d3013a2923374e to your computer and use it in GitHub Desktop.
Save charly-vega/185171d3013a2923374e to your computer and use it in GitHub Desktop.
if [ -z "`ps -e | grep ssh-agent`" ] ; then
ssh-agent /bin/bash
ssh-add ~/.ssh/id_rsa
fi
ps -e | grep ssh-agent
if [ -z "`ps -e | grep ssh-agent`" ] ; then ssh-agent /bin/bash ; ssh-add ~/.ssh/id_rsa ; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment