Chezmoi Diff & Apply
Safely preview and apply chezmoi changes.
Steps
- Run
chezmoi statusto list files that would change - If no changes, report "No changes to apply" and stop
- Run
chezmoi diffto show detailed changes - Summarize the key changes (files added, modified, removed)
- Ask the user for explicit confirmation before proceeding
- If confirmed, run
chezmoi apply - Run
chezmoi statusto verify the apply completed successfully - Report the result
Notes
- Never run
chezmoi applywithout showing the diff first - If the diff is very large, summarize rather than showing everything
- If apply fails, show the error and suggest running
chezmoi doctorfor diagnostics
Converted and distributed by TomeVault — claim your Tome and manage your conversions.