diff --git a/bootstrap.sh b/bootstrap.sh index cccfd9e..1692d7e 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,13 +1,24 @@ #!/bin/bash -which git > /dev/null +which git > /dev/null 2>&1 if [ $? -ne 0 ]; then echo "Git isn't installed." exit 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; do + if [ -e $file ]; then + rm -f $file + fi +done + cd $HOME/.dotfiles/ + +# Stow the default packages for package in bin bash; do echo "Stowing ${package}" ./bin/bin/stowage $package