X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/3daa445ff2b476ff6f43b649bd0dd8862641d86d..f7960c6956325bd800ce90fe2d099fa2fe761e70:/install.sh diff --git a/install.sh b/install.sh index 3eeca8b..e5ccd5f 100755 --- a/install.sh +++ b/install.sh @@ -11,15 +11,15 @@ fi # 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 @@ -47,17 +47,18 @@ done 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