zsh-abbr — abbreviations that expand as you type#
Like aliases, but the full command appears on your line when you press Space or Enter. You see what runs, it's editable, and history stores the real command (not the short form).
Seeded for you#
g→git gs→git status ga→git add gc→git commit gp→git push
gl→git pull gco→git checkout gb→git branch gd→git diff
lg→lazygit d→docker dc→docker compose reload→source ~/.zshrc
Type gco then Space → it becomes git checkout .
Manage your own#
abbr add gst="git status" # add one
abbr add co="checkout" # works mid-command too
abbr erase gst # remove
abbr list # show all
abbr rename gst gs # rename
abbr vs alias#
- alias: hidden expansion, can confuse history/scripts.
- abbr: visible, editable, honest history. Great for muscle memory — you learn the real command instead of hiding it.