dotfiles/bootstrap.sh

22 lines
650 B
Bash
Raw Normal View History

2011-09-05 12:19:31 -06:00
#!/bin/bash
cd "$(dirname "${BASH_SOURCE}")"
function doIt() {
rsync --exclude "setup.sh" --exclude "Monaco-Powerline.otf" --exclude "web_start.sh" \
--exclude "oh-my-zsh" --exclude "tmux-powerline" --exclude ".git/" \
--exclude ".DS_Store" --exclude "bootstrap.sh" --exclude "README.md" \
--exclude "requirements.txt" --exclude "more_python.txt" \
-av . ~
2011-09-05 12:19:31 -06:00
}
2011-09-05 12:19:31 -06:00
if [ "$1" == "--force" -o "$1" == "-f" ]; then
doIt
2011-09-05 12:19:31 -06:00
else
read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
doIt
fi
2011-09-05 12:19:31 -06:00
fi
unset doIt
2013-03-17 03:33:15 -06:00
source ~/.bash_profile