#!/bin/bash
#cd "$(dirname "${BASH_SOURCE}")"
#git pull
function doIt() {
	rsync --exclude "init" --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" --exclude "Brewfile" --exclude "README.md" -av . ~
}
if [ "${1}" == "--force" -o "${1}" == "-f" ]; then
	doIt
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
fi
unset doIt
source ~/.bash_profile

#!/bin/bash
#cd "$(dirname "${BASH_SOURCE}")"
#git pull
function doIt() {
	rsync --exclude "init" --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" --exclude "Brewfile" --exclude ".cask" --exclude ".osx" --exclude "README.md" -av . ~
}
if [ "${1}" == "--force" -o "${1}" == "-f" ]; then
	doIt
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
fi
unset doIt
source ~/.bash_profile

Exclude .cask and .osx from boostrap.
Exclude .cask and .osx from boostrap.
