Daniel Bauke
Open Source / Dotfiles

Dotfiles

Visit on GitHub
Animated demo: chezmoi clones the repository on a new Mac and its scripts install Homebrew packages, mise tools, plugins and defaults.

My Mac setup in chezmoi. A new Mac is ready in about 30 minutes and keeps itself up to date. All of it is public, so anyone can take what they need.

Why it exists

A new Mac takes me about 30 minutes, and I spend most of them waiting. One repository holds every config file and the scripts that install the rest: brew packages, mise tools, editor plugins and macOS defaults. Once the Mac is set up, the same scripts keep it up to date.

The repository is public. Anyone can take a config, a script or the whole approach.

What it does

Keeps the system up to date
chezmoi update also updates brew packages, mise tools, claude plugins, skills, herdr and the rest.
Edit in place, sync later
Change a file where it lives, in an app's settings or in the editor. .chs brings the change back into git, merges it with the other Macs and applies the result.
Secrets stay in 1Password
A hook swaps API keys for placeholders before chezmoi reads a file and puts them back after, so no key reaches git.
My own tools included
mise installs xcodectl, skillet, mobile-broom and claude-counter-statusbar along with everything else.

A new Mac in 30 minutes

Setting up a new Mac is four steps and then a wait:

  1. Install brew.
  2. Install chezmoi and op (1Password CLI).
  3. Run chezmoi init to clone the repository.
  4. Run chezmoi apply. It does the rest:
    • writes the config files
    • installs the Brewfile and the mise tools
    • adds the vim plugins and zim modules
    • sets the macOS and Xcode defaults