feat(config): add Chezmoi Re-Add pre-command to capture local dotfile drift

This commit is contained in:
Prad Nukala committed 2026-08-13 19:35:19 -04:00
1 parent 33cc8a701e
commit e0a44b2b63
1 file changed
+5 -1
+5 -1
View File
@@ -82,7 +82,11 @@ upgrade = false
[pre_commands]
# "Emacs Snapshot" = "rm -rf ~/.emacs.d/elpa.bak && cp -rl ~/.emacs.d/elpa ~/.emacs.d/elpa.bak"
"Dotstate Sync" = "dotstate sync"
# Capture local drift in managed dotfiles back into the chezmoi source repo
# before anything upgrades. Note: only re-adds *managed* files; brand-new
# configs still need a manual `chezmoi add`. Review/commit in
# ~/.local/share/chezmoi afterwards.
"Chezmoi Re-Add" = "chezmoi re-add"
"GHQ Update" = "ghq list | ghq get -u -s"