X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/74024535882f827ce22050175a7b337e036150b1..ff1a2414a9bf713665df692fab9cae9d2320b2f1:/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