Skip to content

Instantly share code, notes, and snippets.

@Spaceghost
Last active August 29, 2015 14:11
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 Spaceghost/68c4f11eb5a0c1558b0d to your computer and use it in GitHub Desktop.
Save Spaceghost/68c4f11eb5a0c1558b0d to your computer and use it in GitHub Desktop.
<?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>org.gnupg.gpg-agent</string>
<key>ProgramArguments</key>
<array>
<string>start-gpg-agent</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
if test -f $HOME/.gpg-agent-info &&
kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2>/dev/null; then
. "${HOME}/.gpg-agent-info"
export GPG_AGENT_INFO
export SSH_AUTH_SOCK
export SSH_AGENT_PID
else
gpg-agent --daemon --enable-ssh-support \
--write-env-file "${HOME}/.gpg-agent-info"
fi
export GPG_TTY=$(tty)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment