Permalink
Browse files

added bootstrap.sh from https://github.com/mathiasbynens/dotfiles/blo…

  • Loading branch information...
1 parent 61b0326 commit c58d45a9bcf89966c28fcd35432e1c9d0ad35711 @matijs committed Aug 24, 2012
Showing with 17 additions and 0 deletions.
  1. +17 −0 bootstrap.sh
View
@@ -0,0 +1,17 @@
+#!/bin/bash
+cd "$(dirname "$0")"
+git pull
+function doIt() {
+ rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" --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

0 comments on commit c58d45a

Please sign in to comment.