olets / zsh-abbr

The zsh manager for auto-expanding abbreviations, inspired by fish. ~13,000 unique cloners as of May '24, 580+ Homebrew installs 6/23-6/24
https://zsh-abbr.olets.dev
Other
511 stars 18 forks source link

[Feature] Prefixes 3/n: linear combinations of prefixes #136

Open olets opened 1 month ago

olets commented 1 month ago

Issue for documentation/findability.

See also

This feature is current a candidate for v6.

After

# .zshrc
the_scalar_prefixes_array_name_tbd+=( 'xyz ' )
the_glob_prefixes_array_name_tbd=( '?.' )
% abbr a=bcd
% e.xyz sudo a[SPACE] # expands to `e.xyz sudo bcd`
% xyz e.sudo a[SPACE] # expands to `xyz e.sudo bcd`
% xyz sudo e.a[SPACE] # expands to `xyz sudo e.bcd`