[dotfiles] Add bootstrap script
change
commit ed4d078dee7471a236b966ba8c97180e9aa8fc19
author Alpha Chen <alpha.chen@gmail.com>
date
parent 7924aa30
diff --git a/README.md b/README.md
index 38b4efeb..8bb20e9f 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,15 @@ files that can be symlinked.
 
 # Usage
 
+On a fresh install, the bootstrap script installs Homebrew and Ansible, clones
+the dotfiles repo into `~/Dropbox/dotfiles`, and creates a symlink to that repo
+in `~/.dotfiles`.
+
+``` shell
+curl https://raw.github.com/kejadlen/dotfiles/master/bootstrap.sh | sh
+```
+
 ``` shell
-ansible-playbook [playbook].yml
+ansible-playbook personal.yml
+ansible-playbook config.yml
 ```
diff --git a/bootstrap.sh b/bootstrap.sh
new file mode 100644
index 00000000..eeafcf83
--- /dev/null
+++ b/bootstrap.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
+brew install ansible
+
+mkdir -p ~/Dropbox/dotfiles
+git clone git@github.com:kejadlen/dotfiles.git ~/Dropbox/dotfiles
+ln -s ~/Dropbox/dotfiles ~/.dotfiles