X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/116467fd2cdd0ffe89304c776a71f219fb1593de..c463f87c65fd0f94545cfcfe7c1e4325ce4e7b99:/base/.zprofile diff --git a/base/.zprofile b/base/.zprofile index 3cc9587..aa57163 100644 --- a/base/.zprofile +++ b/base/.zprofile @@ -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