summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgpg-agent.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/gpg-agent.sh b/gpg-agent.sh
index 92ea105..1471381 100755
--- a/gpg-agent.sh
+++ b/gpg-agent.sh
@@ -13,6 +13,7 @@
# starting multiple agents
#----------------------------------------------------
initgpg(){
+ [ -f "XDG_CONFIG_HOME/disable-gpg-agent" ] && return 0
envfile="${HOME}/.gpginfo"
if test -f ${envfile} && kill -0 $(cut -d: -f 2 ${envfile} | head -n 1) 2>/dev/null; then
eval $(cat ${envfile})