diff --git a/modules/gpg/init.zsh b/modules/gpg/init.zsh index 0bb7476..e644b3a 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.