Improve stowage

This commit is contained in:
2021-03-24 17:46:41 +00:00
parent 99fa73a4e3
commit 208ea18b29
2 changed files with 64 additions and 38 deletions

View File

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