Skip to content

Instantly share code, notes, and snippets.

@camelpunch
Last active September 12, 2017 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save camelpunch/e7f5b842ccdeef8204f8f732d04a899a to your computer and use it in GitHub Desktop.
Save camelpunch/e7f5b842ccdeef8204f8f732d04a899a to your computer and use it in GitHub Desktop.
#!/bin/bash
set -eu
gpg --card-status > /dev/null
killall ssh-agent gpg-agent
unset GPG_AGENT_INFO SSH_AGENT_PID SSH_AUTH_SOCK
gpg-agent --daemon --enable-ssh-support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment