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