From 6ca1ca1c0504074c31b502ef63a838f4f5df197e Mon Sep 17 00:00:00 2001 From: nfnty Date: Sat, 22 Nov 2014 04:37:11 +0100 Subject: [PATCH] Use $GNUPGHOME if it exists --- modules/gpg/init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gpg/init.zsh b/modules/gpg/init.zsh index 0bb7476c..e644b3a2 100644 --- a/modules/gpg/init.zsh +++ b/modules/gpg/init.zsh @@ -11,7 +11,7 @@ if (( ! $+commands[gpg-agent] )); then fi # Set the default paths to gpg-agent files. -_gpg_agent_conf="$HOME/.gnupg/gpg-agent.conf" +_gpg_agent_conf="${GNUPGHOME:-$HOME/.gnupg}/gpg-agent.conf" _gpg_agent_env="${TMPDIR:-/tmp}/gpg-agent.env" # Start gpg-agent if not started.