]> git.sev.monster Git - dotfiles.git/blobdiff - base/.zprofile
fix .zshenv syntax on last commit
[dotfiles.git] / base / .zprofile
index 3cc9587f4a8ca226db0490aa259a41ac6bf7f791..aa571635b152fe51b72e742801e77968e832a80c 100644 (file)
@@ -1,12 +1,15 @@
 #XXX: ensure we override /etc/profile, gets loaded after .zshenv
 source ~/.zshenv
 
-t="/tmp/home-$LOGNAME"
+t="${TMPDIR:-/tmp}/home-$LOGNAME"
 h="$HOME/tmp"
 if [[ ! -e "$t" ]] {
        mkdir -m 700 "$t" > /dev/null 2>&1
+       #TODO: check if dir exists after mkdir
 }
 #allow opaque entries to override
 if [[ ! -e "$h" ]] {
        ln -sf "$t" "$h" > /dev/null 2>&1
 }
+unset t
+unset h
This page took 0.032033 seconds and 4 git commands to generate.