Files
dotfiles/bootstrap.sh

27 lines
735 B
Bash
Executable File

#!/bin/bash
which git >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Git isn't installed."
exit
fi
# Clone dotfiles
git clone git@github.com:nikdoof/dotfiles.git $HOME/.dotfiles >/dev/null
git clone git@github.com:nikdoof/dotfiles-private.git $HOME/.dotfiles-private >/dev/null
# Stow the default public packages
for package in bin shell-common bash zsh; do
echo "Stowing ${package}"
$HOME/.dotfiles/bin/bin/stowage --clobber install $package
done
# Stow the default private packages
for package in ssh; do
echo "Stowing ${package}"
$HOME/.dotfiles/bin/bin/stowage -r $HOME/.dotfiles-private --clobber install $package
done
echo ""
echo "Done, either source ~/.bash_profile / ~/.zshrc or restart your shell."