+#create preferred folder structure
+cd ~
+mkdir -p bin etc share .urxvt/ext > /dev/null 2>&1
+mkdir -m 700 tmp tmp/vim > /dev/null 2>&1
+cd -
+
+#accomodate linuxisms
+fex='-perm -ugo=x'
+case "$OSTYPE" in
+ # TODO: make links safer for systems without -Fw
+ freebsd) lnargs=-sFhvw;;
+ netbsd|openbsd) lnargs=-sfhv;;
+ *) lnargs=-sfnv
+ #android busybox find doesn't have -executable
+ #and its sh doesn't set OSTYPE :DD
+ if [ -z "$ANDROID_ROOT" ]; then
+ fex=-executable
+ fi;;
+esac
+