Skip to content

Instantly share code, notes, and snippets.

@meskarune
Created June 22, 2016 17:50
Show Gist options
  • Save meskarune/21d16f4a9b5f7509884fde6bef85b43e to your computer and use it in GitHub Desktop.
Save meskarune/21d16f4a9b5f7509884fde6bef85b43e to your computer and use it in GitHub Desktop.
bash profile for key agent thing
eval $(ssh-agent) &>/dev/null
ssh-add &>/dev/null
export SSH_AUTH_SOCK
if [ $(env | grep -c SSH_CONNECTION) -ne 0 ] || [ $TERM = "linux" ]; then
source ~/.bashrc
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment