X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/1f8bf10667234911d96ec1f6c88b43d5b49f90f5..496e2ee3615fc4ceaf71a3be2c5ba3c7b8689784:/base/.zprofile diff --git a/base/.zprofile b/base/.zprofile index a129213..425a48c 100644 --- a/base/.zprofile +++ b/base/.zprofile @@ -1,5 +1,14 @@ -case "`uname`" in *BSD*) - mkdir -m 700 "/tmp/home-$LOGNAME" - unlink "$HOME/tmp" - ln -sFh "/tmp/home-$LOGNAME" "$HOME/tmp";; -esac +#XXX: ensure we override /etc/profile, gets loaded after .zshenv +source ~/.zshenv + +t="/tmp/home-$LOGNAME" +h="$HOME/tmp" +if [[ ! -e "$t" ]] { + mkdir -m 700 "$t" > /dev/null 2>&1 +} +#allow opaque entries to override +if [[ ! -e "$h" ]] { + ln -sf "$t" "$h" > /dev/null 2>&1 +} +unset t +unset h