A Zsh plugin to list and manage Git aliases in a grouped, sorted, and filterable way.
- Lists all Git aliases in your configuration.
- Smart Grouping:
- First command word (for normal aliases)
- Alias name prefix (for function aliases
!f() {...}) - First Git subcommand (for
!git ...aliases) - “Other” for remaining bang commands
- Filtering: Supports filtering by keyword(s) with AND matching.
- Highlighting: Highlights matched keywords in yellow.
- Clean Output: Shortens function aliases in output for readability (
!f()). - Compatibility: Fully compatible with Oh My Zsh, Zinit, Znap.
- Clone the repository into your custom plugins folder:
git clone https://github.com/evcli/git-als.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/git-als- Add
git-alsto your plugin list in.zshrc:
plugins=(... git-als)- Reload your shell:
source ~/.zshrczinit light evcli/git-als- Clone the repo:
git clone https://github.com/evcli/git-als.git ~/path/to/git-als- Source it in your
.zshrc:
source ~/path/to/git-als/git-als.plugin.zshAfter installation, the main command is:
git-als [keywords...]or using the alias:
gals [keywords...]-
List all Git aliases:
gals
-
Filter aliases containing "log":
gals log
-
Filter aliases containing both "commit" and "push":
gals commit push
Feel free to submit issues or pull requests. Please keep commits clean and update documentation when adding new features.
MIT License
