]> git.sev.monster Git - dotfiles.git/blobdiff - base/.zprofile
fix which usage, create function check-busybox
[dotfiles.git] / base / .zprofile
index a1292139f1a3089e8089a25e7f14eae10cae1b0f..425a48ced70f4aafdd9060fee8bc95f4059ad69d 100644 (file)
@@ -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
This page took 0.035726 seconds and 4 git commands to generate.