Created
March 23, 2013 09:06
-
-
Save mbrcknl/5227083 to your computer and use it in GitHub Desktop.
How I start gpg-agent on login to OS X.
I use Macports gnupg2, with pinentry +qt4, though with a suitable adjustment to the PATH, this should work if you get your gnupg from somewhere else.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
if [ -f ~/.gpg-agent-info ]; then | |
. ~/.gpg-agent-info | |
export GPG_AGENT_INFO | |
fi | |
# ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Add this script to System Preferences -> Users & Groups -> your account -> Login Items | |
PATH=/opt/local/bin:$PATH | |
gpg-agent --daemon --write-env-file ~/.gpg-agent-info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment