Nick's dotfiles on macOS
Clone onto your laptop:
git clone git://github.com/nduckwiler/dotfiles.git ~/dotfiles
(Or, fork and keep your fork updated).
Install rcm:
brew tap thoughtbot/formulae
brew install rcm
Install the dotfiles:
env RCRC=$HOME/dotfiles/rcrc rcup
After the initial installation, you can run rcup without the one-time variable
RCRC being set (rcup will symlink the repo's rcrc to ~/.rcrc for future
runs of rcup). See
example.
This command will create symlinks for config files in your home directory.
Setting the RCRC environment variable tells rcup to use standard
configuration options:
- Exclude the
README.mdandLICENSEfiles, which are part of thedotfilesrepository but do not need to be symlinked in. - Give precedence to personal overrides which by default are placed in
~/dotfiles-local - Please configure the
rcrcfile if you'd like to make personal overrides in a different directory
From time to time you should pull down any updates to these dotfiles, and run
rcup
to link any new files and install new vim plugins. Note You must run
rcup after pulling to ensure that all files in plugins are properly installed,
but you can safely run rcup multiple times so update early and update often!
Create a directory for your personal customizations:
mkdir ~/dotfiles-local
Put your customizations in ~/dotfiles-local appended with .local:
~/dotfiles-local/gitconfig.local~/dotfiles-local/vimrc.local
For example, your ~/dotfiles-local/gitconfig.local might look like this:
[alias]
l = log --pretty=colored
[pretty]
colored = format:%Cred%h%Creset %s %Cgreen(%cr) %C(bold blue)%an%Creset
[user]
name = Samurai Jack
email = jack@thepast.com
Fish aliases and functions:
gwith no arguments isgit statusand with arguments acts likegit.