dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.margiolis.net/dotfiles.git
Log | Files | Refs | README | LICENSE

autoinstall (592B)


      1 #!/bin/sh
      2 
      3 ignoredirs="\.|\.git|freebsd|homedir|xbindkeys"
      4 homestuff="$(ls -a homedir/ | grep -Ev '^\.$|^\.\.$')"
      5 
      6 mkdir -p ${HOME}/.config
      7 
      8 find . -type d -maxdepth 1 | xargs -r basename | grep -Ev ${ignoredirs} |
      9 xargs -r stow -v
     10 
     11 for h in ${homestuff}; do
     12 	test -d "${h}" && mkdir -pv ${HOME}/${h}
     13 	cp -rv homedir/${h} ${HOME}/
     14 done
     15 
     16 cp -v \
     17 	freebsd/hosts \
     18 	freebsd/src-env.conf \
     19 	/etc/
     20 cp -v freebsd/rc.conf.desktop /etc/rc.conf
     21 cp -v freebsd/rc.local /etc/rc.local
     22 cp -v freebsd/loader.conf.desktop /boot/loader.conf
     23 cp -v freebsd/.login_conf ${HOME}/ && cap_mkdb ${HOME}/.login_conf