1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # 30_env.zshrc: Setup environment
4 # Setup TMPDIR. Try to reset TMPDIR (when it is not set but TMP is), which is
5 # common in tools like screen(1) because Linux removes some varibes for
6 # "setgit" tools (see <https://bugzilla.redhat.com/show_bug.cgi?id=129682#c1>).
7 # And therefore this has to be checked here, because inside of screen probably
8 # no login shell is started ...
9 [[ -z "$TMPDIR" && -n "$TMP" ]] && TMPDIR="$TMP"
11 # Make sure TMP and TMPDIR become exported when they are set:
12 [[ -n "$TMP" ]] && export TMP
13 [[ -n "$TMPDIR" ]] && export TMPDIR