5 alias mkdir="echo mkdir"
8 alias cap_mkdb="echo cap_mkdb"
9 alias unlink="echo unlink"
12 # accomodate linuxisms
14 # TODO: should probably do this better
20 d1='-mindepth 1 -maxdepth 1'
21 # android busybox find doesn't have -execute
22 # and its sh doesn't set OSTYPE :DD
23 if [ -z "$ANDROID_ROOT" ]; then
30 [ -L "$1" -o \! -e "$1" ] && ln $lnargs "${2:-$x}" "$1"
34 # create preferred folder structure
36 mkdir -p bin etc share var/run var/log urxvt/ext > /dev/null 2>&1
37 mkdir -m 700 var/tmp var/tmp/vim > /dev/null 2>&1
38 [ -z "$bsd" ] && mkdir -m 700 tmp > /dev/null 2>&1
42 find "$PWD/base" $d1 | while read -r x; do
43 l "$HOME/`basename "$x"`"
45 find bin share $d1 | while read -r x; do
46 l "$HOME/$x" "$PWD/$x"
48 find "$PWD/xdg" $d1 | while read -r x; do
49 l "${XDG_CONFIG_HOME:-$HOME/etc}/`basename "$x"`"
51 find "$PWD/urxvt-ext" -type f $fex -mindepth 1 -maxdepth 2 | while read -r x; do
52 l "$HOME/.urxvt/ext/`basename $x`"
56 if [ -n "$bsd" ]; then
59 # FreeBSD tries `_secure_path' on `.login_conf' before reading the
60 # database, so it needs to be compiled and unlinked for it to actually
65 # run .zprofile to set up tmp
66 /usr/local/bin/zsh .zprofile