Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 25 lines (21 sloc) 0.574 kb
#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE}")"
git pull origin master
echo "Bootstrapping ${PWD##*/}..."
function doIt() {
rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" \
--exclude "README.md" --exclude "LICENSE-MIT.txt" -av --no-perms . ~
source ~/.bash_profile
}
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
#Add current directory to path
export PATH=$PWD:$PATH
Jump to Line
Something went wrong with that request. Please try again.