-
Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
Install chezmoi:
brew install chezmoi
chezmoi init --apply https://github.com/harrymasson/dotfiles.gitDuring init, chezmoi will prompt:
Machine type (personal/work) [personal]:
Answer personal or work — this controls which config blocks are included (e.g. the GitHub SSH entry is personal-only). The answer is stored in ~/.config/chezmoi/chezmoi.toml and never prompted again.
# Install all Homebrew packages
brew bundle --file="$(dirname "$(chezmoi source-path)")/Brewfile"
# Install tool versions (Node, Python via mise)
mise install
# Open a new shell to pick up the new config
exec zshchezmoi doctorReports any config issues, missing tools, or file drift.
The personal/work answer from init drives template conditions throughout the dotfiles. To change it later:
chezmoi init # re-runs the prompt, updates ~/.config/chezmoi/chezmoi.toml
chezmoi apply # re-applies templates with the new valueLocal overrides that are never committed go in ~/.config/zsh/local/*.zsh.