From ed4d078dee7471a236b966ba8c97180e9aa8fc19 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Thu, 28 Aug 2014 18:47:50 -0700 Subject: [PATCH] [dotfiles] Add bootstrap script --- README.md | 11 ++++++++++- bootstrap.sh | 8 ++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 bootstrap.sh diff --git a/README.md b/README.md index 38b4efe..8bb20e9 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 0000000..eeafcf8 --- /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