ohmyzsh/plugins/aliases
Green Orange b08b350ee9
fix(aliases): preserve trailing double quote in \als\ output
strip('\'"\n ') was stripping double quotes from both ends of the alias
value, so an alias like now='date +"%T"' was displayed as `date +"%T`
(missing the closing double quote). Fix by stripping only outer matching
quote pairs rather than all quote characters from both ends.

Fixes #13637
2026-04-06 00:25:35 +02:00
..
tests fix(aliases): preserve trailing double quote in \als\ output 2026-04-06 00:25:35 +02:00
.gitignore style(acs): fix style and gitignore __pycache__ folder 2021-12-28 17:46:35 +01:00
aliases.plugin.zsh fix(aliases)!: rename acs to als 2023-07-19 14:31:56 +02:00
cheatsheet.py fix(aliases): preserve trailing double quote in \als\ output 2026-04-06 00:25:35 +02:00
README.md docs: improve several plugin READMEs and add one for ssh plugin 2024-08-09 09:44:46 +02:00
termcolor.py chore: fix spelling errors across the project (#10459) 2021-12-01 12:20:31 +01:00

Aliases cheatsheet

With lots of 3rd-party amazing aliases installed, this plugin helps list the shortcuts that are currently available based on the plugins you have enabled.

To use it, add aliases to the plugins array in your zshrc file:

plugins=(aliases)

Requirements: Python needs to be installed.

Maintainer: @hqingyi

Usage

  • als: show all aliases by group

  • als -h/--help: print help message

  • als <keyword(s)>: filter and highlight aliases by <keyword>

  • als -g <group>/--group <group>: show only aliases for group <group>. Multiple uses of the flag show all groups

  • als --groups: show only group names

    screenshot