From 9a04f3885b393350cfdbbacf62f3c54022a53b94 Mon Sep 17 00:00:00 2001 From: Jason Swank Date: Sat, 11 Nov 2023 13:22:07 -0500 Subject: [PATCH] install.sh: limit what is installed --- install.sh | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) 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" {}