Skip to content

Instantly share code, notes, and snippets.

@mRB0
Created June 27, 2020 15:53
Show Gist options
  • Save mRB0/ac0f032973abed417d239c9dd56330e2 to your computer and use it in GitHub Desktop.
Save mRB0/ac0f032973abed417d239c9dd56330e2 to your computer and use it in GitHub Desktop.
if [[ ! -z $SSH_AUTH_SOCK ]]; then
# echo "zshrc.d/ssh-agent: warning: SSH_AUTH_SOCK is set; skipping agent setup"
else
eval $(ssh-agent -s)
trap 'test -n "$SSH_AGENT_PID" && eval `/usr/bin/ssh-agent -k`' 0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment