Dotfiles! Err...yay!
I spend most of my time in zsh, tmux, and iTerm2, and vim is my editor of choice. I use a number of vim plugins, managed by vim-plug, and a few tmux plugins, manged by tpm.
The location of my dotfiles is specified by the DOTFILES
environment variable
in .zshenv
. It’s set to ~/.dotfiles
by default. Things that shouldn’t be in
the repo, like sensitive or host-specific information, go in ~/.config
. The
local config directory isn’t configurable. Git doesn't support environment
variable expansion in include
statements in .gitconfig
, but it will
automatically look in ~/.config/git/config
, and the other tools I use can be
pointed at ~/.config
as necessary.
Transient files, like vim sessions or zsh completions, are stored under
CACHEDIR
, set to ~/.cache
by default.
There’s an init.sh
script that will put things in their expected places.
The zsh completion script that comes with git is outdated. The one that comes
with current distributions of zsh (including 5.2 in macOS Sierra) is much
better. When installing git via homebrew, use the --without-completions
option.
Much of the ZSH config was copied from prezto.