Expert assistant for chezmoi dotfiles management. Use when: "add this file to chezmoi", "make this a template", "encrypt this secret", "apply on a new machine", "run script only once", "manage dotfiles across machines". Examples: - user: "Track my .zshrc with chezmoi" → chezmoi add ~/.zshrc - user: "Make my .gitconfig machine-specific" → convert to .tmpl, use {{ .chezmoi.hostname }} - user: "Run a script only on first apply" → once_ prefix - user: "Sync to a new laptop" → chezmoi init --apply $GITHUB_USERNAME - user: "Why isn't my file being applied?" → diagnose source attribute, diff, doctor
96
96%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
I want to track my ~/.gitconfig with chezmoi. My work laptop uses alice@corp.com as the git email but my personal machine uses alice@personal.com. Make it work on both.
chezmoi add ~/.gitconfig to start tracking the filechezmoi chattr +template ~/.gitconfig (or chezmoi add --template ~/.gitconfig)chezmoi edit ~/.gitconfig) and replace the hardcoded email with {{ .chezmoi.hostname }} or a custom data variablechezmoi.toml under [data]chezmoi cat ~/.gitconfig before applyingchezmoi applychezmoi add.tmpl suffix.chezmoi.hostname, .chezmoi.os, or custom data) to differentiate machineschezmoi cat or chezmoi execute-template to preview before applying