]> arthur.barton.de Git - ax-zsh.git/blob - core/30_env/30_env.zshrc
b8ee8338f6a501a5dc5e11de2b1182f7b99fe69d
[ax-zsh.git] / core / 30_env / 30_env.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # 30_env.zshrc: Setup environment
3
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"
10
11 # Make sure TMP and TMPDIR become exported when they are set:
12 [[ -n "$TMP" ]] && export TMP
13 [[ -n "$TMPDIR" ]] && export TMPDIR