install.sh: limit what is installed

This commit is contained in:
Jason Swank 2023-11-11 13:22:07 -05:00
parent ad2751f280
commit 9a04f3885b

View File

@ -8,6 +8,30 @@ if [ -z "$STOW" ]; then
STOW=./stow.sh STOW=./stow.sh
fi 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" {}