/dotfiles

My dotfiles.

Primary LanguageShell

dotfiles

My dotfiles.

Theory of Operation

This manages dotfiles via the bare-git-repo method. In this method, you simply let your dotfiles live where they're used, in ~, and version them in a separate, bare, git repository. See .zshrc for setup. Credit to @teamsnelgrove for pointing me to this method and to HN user StreakyCobra for sharing the method to begin with.

Guiding Principles

  1. Prefer simpler stuff.
  2. Prefer comment-delimited sections over more files. e.g., if you have aliases for interactive sessions, don't break them into aliases.zsh and then source aliases.zsh from .zshrc. Just put them in the # Functions. section of your .zshrc.
  3. Embrace minor inconvenience. ./.config/dotfiles/Brewfile doesn't mean you'll never need to brew install manually when you have to. Put another way: this is not a Terraform template for unattended provisioning of new boxes. This is a folder full of configuration files.