Closed silisium closed 6 months ago
Aliases are part of the OS.
Run doskey /?
to learn more.
The syntax of aliases is well defined, and documented.
If you want to pass the full list of arguments in a specific spot, then you must use $*
.
Simply,
os.setalias('grep', 'rg $*')
The alias syntax enables you to also choose to not include args, or to put specific ones in specific spots, e.g. xyz --port="$2" verb $1
.
if i have let say:
and run
grep --help
, i get the output you normally get when runningrg
without flags, not the help output. i had to do this to make it work:which i think should be done implicitly by
os.setalias