My OS X dotfiles.
The installation step requires the XCode Command Line
Tools and may overwrite existing
dotfiles in your HOME and .vim
directories.
git clone git@github.com:nick-thompson/dotfiles.git ~/.dotfiles
~/.dotfiles/bin/dotfiles
You should run the update when:
- You make a change to
~/.dotfiles/git/gitconfig
(the only file that is copied rather than symlinked). - You want to pull changes from the remote repository.
- You want to update Homebrew formulae.
Run the dotfiles command:
$ dotfiles
Options:
-h , --help |
Help |
--no-brew |
Suppress attempts to install/update Homebrew |
--no-update |
Suppress pulling from the remote repository |
Homebrew formulae:
N.B. If your pre-existing Homebrew installation is not in usr/local
then you
must add your custom location's bin
to the PATH in .bash_profile.local
:
# Add `brew` command's custom location to PATH
PATH="/opt/acme/bin:$PATH"
Any special-case Vim directives local to a machine should be stored in a
.vimrc.local
file on that machine. The directives will then be automatically
imported into your master .vimrc
.
Any private and custom commands should be stored in a ~/.bash_profile.local
file. Any commands included in this file will not be under version control or
committed to a public repository. If ~/.bash_profile.local
exists, it will be
sourced for inclusion in bash_profile
.
Here is an example ~/.bash_profile.local
:
# PATH exports
PATH=$PATH:~/.gem/ruby/1.8/bin
export PATH
# Git credentials
# Not under version control to prevent people from
# accidentally committing with your details
GIT_AUTHOR_NAME="Nicolas Gallagher"
GIT_AUTHOR_EMAIL="nicolas@example.com"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
# Set the credentials (modifies ~/.gitconfig)
git config --global user.name "$GIT_AUTHOR_NAME"
git config --global user.email "$GIT_AUTHOR_EMAIL"
The git/gitconfig
file is copied to ~/.gitconfig
, so any private git
configuration specified in ~/.bash_profile.local
will not be committed to
your dotfiles repository.
Vim plugins are managed with Vundle. With any updates or additional plugins, run :BundleInstall from inside Vim.