dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

install.sh (629B) [raw]


      1 #!/bin/sh
      2 # install.sh -- full install via skel.sh/lnkdot
      3 set -e
      4 DIR="$(dirname "$(dirname "$(readlink -f "$0")")")"
      5 
      6 . "$DIR/etc/skel.sh"
      7 add .bash_profile "export ENV=\"$DIR/.shrc\""
      8 add .bash_profile "[ -e \"$DIR/.bashrc\" ] && source \"$DIR/.bashrc\""
      9 
     10 # Generic .dotfiles
     11 for f in `find $DIR -maxdepth 1 -name '.*' -type f | grep -v git | sed "s#^$DIR/##"`; do
     12 	"$DIR/bin/lnkdot" $f
     13 done
     14 
     15 # Generic .config dirs
     16 for d in `find $DIR/.config -maxdepth 1 -mindepth 1 -type d | sed "s#^$DIR/##"`; do
     17 	"$DIR/bin/lnkdot" $d
     18 done
     19 
     20 # Other exceptions
     21 "$DIR/bin/lnkdot" .vim
     22 mkdir -p $HOME/.newsboat
     23 "$DIR/bin/lnkdot" .newsboat/urls