[dotfiles] Add bootstrap script

pull/28/head
Alpha Chen 10 years ago
parent 7924aa30ba
commit ed4d078dee

@ -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
```

@ -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
Loading…
Cancel
Save