X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/a8f1ccafb8cc593670ddcda3f17ef83af8950a94..cbfa782ecacafe28885f3b65a0dec533ab7c3ddd:/base/.zprofile diff --git a/base/.zprofile b/base/.zprofile index 425a48c..aa57163 100644 --- a/base/.zprofile +++ b/base/.zprofile @@ -1,10 +1,11 @@ #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" ]] {