chezmoi diff shows unexpected changes
Source: Troubleshooting reference
Another program modified a managed file. Common culprits:
uvauto-adds source lines to.zshrc/.bashrcfor itsbin/envfiles- Claude Code updates
~/.claude/settings.jsonwhen plugins are installed - Other tools may modify shell configs without asking
Options:
chezmoi diff # see what changedchezmoi apply --force # overwrite with repo version (safe for shell configs)chezmoi add ~/.claude/settings.json # pull the live version into the repo (for config files)For shell configs (.zshrc, .zprofile, .bash_profile), always use chezmoi apply --force to restore the clean template. These files should never be manually edited.