X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/32bdde5fa442d01349120dd4c3ab1b6c07537631..5c97f2036dcd89001c9b70d15c7daacad705b845:/base/.zprofile?ds=sidebyside diff --git a/base/.zprofile b/base/.zprofile index 39abb7d..3c1d2e0 100644 --- a/base/.zprofile +++ b/base/.zprofile @@ -1,5 +1,12 @@ -case "`uname`" in *BSD*) - mkdir -m 700 "/tmp/home-$LOGNAME" > /dev/null 2>&1 - unlink "$HOME/tmp" > /dev/null 2>&1 - ln -sFh "/tmp/home-$LOGNAME" "$HOME/tmp";; -esac +#XXX: $PATH gets unset on alpine??? +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 +}