macOS dotfiles managed with chezmoi.
Already using these dotfiles: chezmoi update && chezmoi apply
You’ll overwrite existing dotfiles (e.g. ~/.zshrc). Back up anything you care about first.
Prerequisites (run once, requires GUI prompt):
xcode-select --installThen — one command:
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply helderberto/dotfilesThis installs chezmoi, pulls the repo, and applies everything: Homebrew, packages, apps, asdf with nodejs, SSH key generation, and Dock config.
If you plan to edit these dotfiles, clone the repo first:
git clone git@github.com:helderberto/dotfiles.git ~/.dotfiles cd ~/.dotfiles && ./bootstrap.sh
- Open a new terminal so shell config and tools are loaded.
- Add the generated SSH key to GitHub: https://github.com/settings/ssh/new
Pull the latest from the repo and apply:
chezmoi update
chezmoi diff # optional: preview changes
chezmoi apply~/.private is not managed by chezmoi. Put machine-only env vars and secrets there; your shell config sources it automatically.
# in ~/.private
export WORK_API_KEY=...
alias workspace="cd ~/my-company/workspace"Edit the dotfiles in your clone of helderberto/dotfiles, push, then apply:
cd ~/.dotfiles # or wherever you cloned the repo
git add <file>
git commit -m "..."
git push origin main
chezmoi applyOn other machines, chezmoi update && chezmoi apply is enough.
| Command | Purpose |
|---|---|
chezmoi managed |
List all managed paths |
chezmoi diff |
Preview changes before applying |
chezmoi apply |
Apply dotfiles to ~ |
MIT License © helderberto