On 2021-08-31 12:24 PM, zzapper wrote:
On 30/08/2021 19:13, Steve Dondley wrote:dont know if this helps but I have 'group' aliases so if i type tmxa i getNow I'm wondering if there is some similar mechanism for adding aliases with ohmyzsh. If not, what's everyone else doing who has a couple hundred aliases. Are you just throwing them all into .zshrc or doing something to help manage all your aliases?alias tmxa="alias -L 'tmx' 'tmxk' 'tmxn' 'tmxc'" # list all my tmx aliaseszzapper
Thanks, I wasn't aware of the -L switch. Looks like it does something similar to the "type" command as in "type <alias>".
It would be nice if you could so something like alias -L "t*" and list all aliases but that doesn't seem to work.
Weirdly, "type t*" works but that only lists functions that begin with "t". I don't see an option to print out aliases with a glob.