Fork this repo on Github.
Clone your fork (replace your-github-name
with your Github name).
git clone git@github.com:your-github-name/dotfiles.git
cd dotfiles
Run the installer.
./install.sh
It creates symlinks for all dotfiles in your home directory. You can safely run this file multiple times to update.
Included are zsh
dotfiles. To switch your shell to zsh
on OS X:
chsh -s /bin/zsh
Your master branch is meant for your customizations. Use the upstream
branch
to get thoughtbot's updates.
Do this once:
git remote add upstream git@github.com:thoughtbot/dotfiles.git
git fetch upstream
git checkout -b upstream upstream/master
Make changes in files that are not in thoughtbot's dotfiles.
For example, to customize your zsh
config, make your changes in ~/.zshenv
:
# RVM
[[ -s '/Users/croaky/.rvm/scripts/rvm' ]] && source '/Users/croaky/.rvm/scripts/rvm'
# recommended by brew doctor
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
Commit those kinds of things in your master branch.
Then, each time you want to update thoughtbot's changes.
git checkout upstream
git pull
git checkout master
git rebase upstream