diff --git a/install.sh b/install.sh index 7a3ae74..2c1afef 100755 --- a/install.sh +++ b/install.sh @@ -8,6 +8,30 @@ if [ -z "$STOW" ]; then STOW=./stow.sh fi -rm -f $HOME/.zshrc $HOME/.profile >/dev/null 2>&1 +git submodule update --init --recursive + +# if these aren't links, move them out of the way? +for f in ~/.zshrc ~/.profile; do + if [ -f $f ]; then + mv $f $f.orig + fi +done + + +# rm -f $HOME/.zshrc $HOME/.profile >/dev/null 2>&1 + +# install all dotfiles +#find * -maxdepth 0 -type d | xargs -I{} $STOW -t "$HOME" {} + +# install general dotfiles +for dir in \ + git \ + nvim \ + sh \ + ssh \ + tmux \ + zsh +do + $STOW -t ~/ $dir +done -find * -maxdepth 0 -type d | xargs -I{} $STOW -t "$HOME" {}