Closed bojanrajkovic closed 10 years ago
How about an alias
command of the form:
alias add <aliascmd> <actualcmd>
alias del <aliascmd>
alias clear
alias list
So you could say:
alias add s step {0}
You could then say s o
and it would expand to step o
. So a super simple string formatting thing where each specifier is filled in from a space-separated array of the input. Similarly:
alias add colors cfg set DisableColors {0}
Would let you say colors false
or whatever.
Works for me.
Implemented, but only with support for a single formatting specifier. Anything more sophisticated will require some rethinking of how commands are processed...
It would be nice to be able to map aliases—even a simple linefeed delimited file like so would be good: