4 alias mkdir="echo mkdir"
7 alias cap_mkdb="echo cap_mkdb"
8 alias unlink="echo unlink"
11 #fix permissions from git (TODO: should probably move this to git hook)
12 chmod go= base/.zshenv base/.Xresources
14 #create preferred folder structure
16 mkdir -p bin etc share .urxvt/ext > /dev/null 2>&1
17 mkdir -m 700 tmp tmp/vim > /dev/null 2>&1
27 d1='-mindepth 1 -maxdepth 1'
28 #android busybox find doesn't have -execute
29 #and its sh doesn't set OSTYPE :DD
30 if [ -z "$ANDROID_ROOT" ]; then
37 [ -L "$1" -o \! -e "$1" ] && ln $lnargs "${2:-$x}" "$1"
40 find "$PWD/base" $d1 | while read -r x; do
41 l "$HOME/`basename "$x"`"
43 find bin share $d1 | while read -r x; do
44 l "$HOME/$x" "$PWD/$x"
46 find "$PWD/xdg" $d1 | while read -r x; do
47 l "${XDG_CONFIG_HOME:-$HOME/etc}/`basename "$x"`"
49 find "$PWD/urxvt-ext" -type f $fex -mindepth 1 -maxdepth 2 | while read -r x; do
50 l "$HOME/.urxvt/ext/`basename $x`"
54 if [ -n "$bsd" ]; then
57 #FreeBSD tries `_secure_path' on `.login_conf' before reading the database,
58 #so it needs to be compiled and unlinked for it to actually take effect.