1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-02 01:39:25 +00:00

Avoid setting TMPDIR and make sure all modules handle that properly

Fixes #1206
This commit is contained in:
Kaleb Elwert
2017-07-28 10:24:45 -07:00
parent b3c7d21d31
commit 3f556400e7
3 changed files with 2 additions and 15 deletions

View File

@ -12,7 +12,7 @@ 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"
_gpg_agent_env="${TMPDIR:-/tmp}/gpg-agent.env.$UID"
# Start gpg-agent if not started.
if [[ -z "$GPG_AGENT_INFO" && ! -S "${GNUPGHOME:-$HOME/.gnupg}/S.gpg-agent" ]]; then