What is zsh-abbr
mainzsh-abbr is a Zsh plugin for managing auto-expanding abbreviations. It allows you to define short text sequences (abbreviations) that automatically expand into longer, more descriptive commands when typed in the terminal.
Key Features
- Keystroke Savings: Similar to aliases, but with a key difference in how they interact with command history.
- Transparent History: Unlike standard aliases, abbreviations expand in the terminal, leaving your command history containing the full, understandable command rather than the shorthand. This makes history easier to share or use on different machines.
- Learning Tool: Helps users learn full command syntax by providing the shorthand while visually presenting the expanded version.
- Types of Abbreviations:
- Regular: Abbreviations that only expand when they are at the start of a command.
- Global: Abbreviations that can expand anywhere on a command line.
- Persistence: Abbreviations can be created interactively and are automatically synced to a file for easy dotfile management.