Support clobbering existing files in stowage

This commit is contained in:
2021-03-25 09:23:12 +00:00
parent 3a4b76838f
commit 54d5e591ee
2 changed files with 46 additions and 33 deletions

View File

@@ -9,17 +9,10 @@ fi
# Clone dotfiles
git clone https://github.com/nikdoof/dotfiles.git $HOME/.dotfiles > /dev/null
# Clean bash files
for file in .bash_profile .bashrc .bash_logout .zshrc; do
if [ -e $file ]; then
rm -f $file
fi
done
# Stow the default packages
for package in bin shell-common bash zsh; do
echo "Stowing ${package}"
$HOME/.dotfiles/bin/bin/stowage install $package
$HOME/.dotfiles/bin/bin/stowage --clobber install $package
done
echo ""
echo "Done, either source ~/.bash_profile / ~/.zshrc or restart your shell."