]> arthur.barton.de Git - ax-zsh.git/blob - core/30_env/30_env.zshrc
01_zprofile.zshrc: Don't forget the "ax-io" stage!
[ax-zsh.git] / core / 30_env / 30_env.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # 30_env.ax-io: Setup environment
3
4 # Make sure TMPDIR ends in a slash (like on macOS by default): this makes its
5 # usage a bit safer ...
6 case "$TMPDIR" in
7         */) ;;
8         *)  TMPDIR="$TMPDIR/"
9 esac
10 export TMPDIR
11
12 # TMPDIR is the only one required to be set, but make sure that TMP, TEMP
13 # and TEMPDIR are set to the same sane path name when already present in the
14 # environment:
15 [[ -n "$TMP" ]] && TMP="$TMPDIR"
16 [[ -n "$TEMP" ]] && TEMP="$TMPDIR"
17 [[ -n "$TEMPDIR" ]] && TEMPDIR="$TMPDIR"