zshrc/zsh.d/50_gpg-agent.zsh
2024-09-08 19:04:17 +02:00

18 lines
395 B
Bash

# vim: ft=zsh
if command-exists "gpg-agent"; then
# on OS X with GPGTools, comment out the next line:
if [[ "$OSTYPE" != "darwin"* ]]; then
# non OSX
eval $(gpg-agent --daemon)
fi
GPG_TTY=$(tty)
export GPG_TTY
if [ -f "${HOME}/.gpg-agent-info" ]; then
. "${HOME}/.gpg-agent-info"
export GPG_AGENT_INFO
export SSH_AUTH_SOCK
fi
fi