[meta] Use ~/.dotfiles for staging

Dropbox doesn't like having an existing ~/Dropbox dir, so we now run
directly from ~/.dotfiles and fix it up later.
pull/28/head
Alpha Chen 10 years ago
parent 73801a2179
commit fb1ab53c6e

@ -17,9 +17,8 @@ open 'https://itunes.apple.com/us/app/xcode/id497799835?mt=12'
sudo xcodebuild -license sudo xcodebuild -license
``` ```
Then run the bootstrapping script. This installs Homebrew and Ansible, clones Then run the bootstrapping script. This installs Homebrew and Ansible, and
the dotfiles repo into `~/Dropbox/dotfiles`, and creates a symlink to that repo clones the dotfiles repo into `~/.dotfiles`.
in `~/.dotfiles`.
``` shell ``` shell
curl -L https://raw.github.com/kejadlen/dotfiles/master/bootstrap.sh | sh curl -L https://raw.github.com/kejadlen/dotfiles/master/bootstrap.sh | sh
@ -31,3 +30,9 @@ Now ansible can be run to set up mostly everything.
cd ~/.dotfiles/ansible && ansible-playbook main.yml --ask-sudo-pass cd ~/.dotfiles/ansible && ansible-playbook main.yml --ask-sudo-pass
rm -f ~/*.retry rm -f ~/*.retry
``` ```
# Post-Ansible
``` shell
ln -sF ~/Dropbox/dotfiles ~/.dotfiles
```

@ -3,6 +3,4 @@
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
/usr/local/bin/brew install ansible /usr/local/bin/brew install ansible
mkdir -p ~/Dropbox/dotfiles git clone https://github.com/kejadlen/dotfiles.git ~/.dotfiles
git clone https://github.com/kejadlen/dotfiles.git ~/Dropbox/dotfiles
ln -s ~/Dropbox/dotfiles ~/.dotfiles

Loading…
Cancel
Save