Skip to content

Instantly share code, notes, and snippets.

@jwhb
Created July 26, 2020 17:07
Show Gist options
  • Save jwhb/43a8772a7f638a4dcfcec6eb0f9e0e8f to your computer and use it in GitHub Desktop.
Save jwhb/43a8772a7f638a4dcfcec6eb0f9e0e8f to your computer and use it in GitHub Desktop.
WSL: init gpg-agent in Bash
export GPG_TTY=$(tty)
pgrep -U $UID gpg-agent > /dev/null || gpg-connect-agent /bye > /dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment