Skip to content

Instantly share code, notes, and snippets.

@tsujamin
Created October 19, 2020 08:50
Show Gist options
  • Save tsujamin/55fd7fb648a661340e70af61249e8de3 to your computer and use it in GitHub Desktop.
Save tsujamin/55fd7fb648a661340e70af61249e8de3 to your computer and use it in GitHub Desktop.
gpg-agent launchd plists
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>au.id.bgroberts.gpg-agent.plist</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/gpgconf</string>
<string>--launch</string>
<string>gpgagent</string>
</array>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<true/>
</dict>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs>
<plist version="1.0">
<dict>
<key>Label</key>
<string>link-ssh-auth-sock</string>
<key>ProgramArguments</key>
<array>
<string>/bin/sh</string>
<string>-c</string>
<string>/bin/ln -sf $HOME/.gnupg/S.gpg-agent.ssh $SSH_AUTH_SOCK</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>⏎
default-cache-ttl 0
max-cache-ttl 60
pinentry-program /usr/local/bin/pinentry-mac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment