Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 979 Bytes

File metadata and controls

44 lines (33 loc) · 979 Bytes

Daily Workflow & Cheatsheet

Daily Workflow

Common Commands

Task Command
Preview what would change chezmoi diff
Apply all changes chezmoi apply
Dry run (no changes) chezmoi apply --dry-run
Edit a managed file chezmoi edit ~/.zshrc
Pull upstream + apply chezmoi update
Re-add a locally modified file chezmoi re-add ~/.zshrc
Check managed files chezmoi managed
Verify deployed state chezmoi verify
Health check chezmoi doctor

Typical Edit Cycle

# 1. Edit the source template
chezmoi edit ~/.zshrc

# 2. Preview what would change
chezmoi diff

# 3. Apply
chezmoi apply

# 4. Commit the change
cd $(chezmoi source-path)
git add -A && git commit -m "feat: add new alias"
git push

Pulling Changes on Another Machine

chezmoi update

This does git pull on the source repo and then chezmoi apply in one step.