# create preferred folder structure
cd ~
-mkdir -p bin etc share .urxvt/ext > /dev/null 2>&1
-mkdir -m 700 var/tmp var/tmp/vim > /dev/null 2>&1
+mkdir -p bin etc share .urxvt/ext .icons .themes > /dev/null 2>&1
+mkdir -pm 700 var/tmp var/tmp/vim > /dev/null 2>&1
cd -
# accomodate multiple userlands
fex='-perm -ugo=x'
lnargs=-sfnv
if [ -z "$OSTYPE" ]; then
- OSTYPE=`uname -o | tr '[:upper:]' '[:lower:]'`
+ OSTYPE=`uname -s | tr '[:upper:]' '[:lower:]'`
fi
case "$OSTYPE" in
# TODO: make links safer for systems without -Fw
find "$PWD/urxvt-ext" -type f $fex -mindepth 1 -maxdepth 2 | while read -r x; do
l "$HOME/.urxvt/ext/`basename $x`"
done
+find "$PWD/xorg" -type d -mindepth 3 -maxdepth 3 | while read -r x; do
+ l "$HOME/.icons/`basename $x`"
+done
+#TODO: theme
cd ~
if [ "$OSTYPE" = "freebsd" ]; then
- touch .hushlogin
-
# FreeBSD tries `_secure_path' on `.login_conf' before reading the
# database, so it needs to be compiled and unlinked for it to actually
# take effect.
rm .login_conf.db
cap_mkdb .login_conf
-
fi
unlink .login_conf
# run .zprofile to set up tmp