From 351b136cbc9cc9c5dfc13612bd75ba266558b775 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sun, 6 Jun 2021 22:08:45 -0700 Subject: [PATCH] Support disabling gpg-agent. --- dotfiles/zshrc.d/gpg.zsh | 4 ++++ 1 file changed, 4 insertions(+) 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"