The location of my dotfiles is specified by the
DOTFILES environment variable
.zshenv. It’s set to
~/.dotfiles by default. Things that shouldn’t be in
the repo, like sensitive or host-specific information, go in
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
~/.config as necessary.
Transient files, like vim sessions or zsh completions, are stored under
CACHEDIR, set to
~/.cache by default.
init.sh script that will put things in their expected places.
Zsh and Git
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
Much of the ZSH config was copied from prezto.