1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-02 17:49: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

@ -6,6 +6,6 @@
#
# Ensure that a non-login, non-interactive shell has a defined environment.
if [[ ( "$SHLVL" -eq 1 && ! -o LOGIN || -z "${TMPDIR}" ) && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
if [[ ( "$SHLVL" -eq 1 && ! -o LOGIN ) && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
source "${ZDOTDIR:-$HOME}/.zprofile"
fi