Add chezmoi aliases and update Claude memory

- Add chezmoi section to aliases.zsh with cmu, cma, cms, cmd, cme
- Update CLAUDE.md to always sync and commit dotfile changes
This commit is contained in:
Viktor Barzin 2026-02-03 19:56:38 +00:00
parent fde360dbdc
commit e68e3a436a
2 changed files with 20 additions and 0 deletions

11
dot_claude/CLAUDE.md Normal file
View file

@ -0,0 +1,11 @@
# Claude Memory
## Preferences
### Chezmoi Sync
When making changes to dotfiles (including Claude files in `~/.claude/`), always:
1. Sync with chezmoi:
- `chezmoi add <file>` for new files
- `chezmoi re-add <file>` for updated files
2. Commit the changes in the chezmoi source directory:
- `cd $(chezmoi source-path) && git add -A && git commit -m "<descriptive message>"`

View file

@ -152,3 +152,12 @@ alias upgrade="sudo $pm upgrade"
alias install="sudo $pm install"
alias remove="sudo $pm remove"
alias reinstall="sudo $pm reinstall"
# ============================================================================
# Chezmoi (dotfiles management)
# ============================================================================
alias cmu="chezmoi update" # Pull from remote and apply changes
alias cma="chezmoi apply" # Apply changes from local source
alias cms="chezmoi status" # Show what would change
alias cmd="chezmoi diff" # Show diff of pending changes
alias cme="chezmoi edit" # Edit a managed file