diff --git a/dotfiles/zshrc.d/gpg.zsh b/dotfiles/zshrc.d/gpg.zsh index cd1d1f4..c40d990 100644 --- a/dotfiles/zshrc.d/gpg.zsh +++ b/dotfiles/zshrc.d/gpg.zsh @@ -2,6 +2,10 @@ if ! which gpg-agent >/dev/null 2>&1 ; then return 1 fi +if test -f ${HOME}/.no-gpg-agent ; then + return 0 +fi + # Set the default paths to gpg-agent files. _gpg_agent_conf="${GNUPGHOME:-$HOME/.gnupg}/gpg-agent.conf" _gpg_agent_env="${TMPDIR:-/tmp}/gpg-agent.env.$UID"