Rosettea / Hilbish

🌓 The Moon-powered shell! A comfy and extensible shell for Lua fans! 🌺 ✨
https://rosettea.github.io/Hilbish/
MIT License
496 stars 21 forks source link

feat: allow numbered substitutions in aliases #258

Closed TorchedSammy closed 11 months ago

TorchedSammy commented 1 year ago

this allows users to refer to args in aliases with an index. this makes it so certain aliases don't have to be done via a commander

example:

~/Files/Projects/Hilbish alias-substitute*                                   
∆ hilbish.alias('dumb', 'echo %1 is dumb')
~/Files/Projects/Hilbish alias-substitute*                                   
∆ dumb
%1 is dumb
~/Files/Projects/Hilbish alias-substitute*                                   
∆ dumb me
me is dumb