feat(chezmoi): add aliases for common chezmoi commands

Add 14 aliases to the chezmoi plugin covering the core dotfile
management workflow. Aliases follow the OMZ naming convention
(cm prefix + first letters of subcommand).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
omair-inam 2026-02-27 08:01:43 -05:00
commit b10422f8fd
No known key found for this signature in database
2 changed files with 41 additions and 2 deletions

View file

@ -12,3 +12,23 @@ if [[ ! -f "$ZSH_CACHE_DIR/completions/_chezmoi" ]]; then
fi
chezmoi completion zsh >| "$ZSH_CACHE_DIR/completions/_chezmoi" &|
#
# Aliases
# (sorted alphabetically by alias name)
#
alias cm='chezmoi'
alias cma='chezmoi add'
alias cmap='chezmoi apply'
alias cmcd='chezmoi cd'
alias cmd='chezmoi diff'
alias cme='chezmoi edit'
alias cmg='chezmoi git'
alias cmi='chezmoi init'
alias cmia='chezmoi init --apply'
alias cmm='chezmoi merge'
alias cmma='chezmoi merge-all'
alias cmra='chezmoi re-add'
alias cmst='chezmoi status'
alias cmu='chezmoi update'