Configurable per-directory command aliases and scripts.
deno install -A -n runrc -f https://deno.land/x/runrc/src/main.ts
npm install -g runrc
RunRC allows the configuration of custom, parameterised commands, per directory. To get started, run:
runrc init
This will create a .runrc
file in the current working directory. This will
contain an example configuration, which you can edit as needed.
The example configuration generated by init
contains a hello
command. You
can run it like this:
runrc hello World
Hello World!
You can use the following templating expressions:
{#}
- number of arguments{1}
- first argument{-1}
- last argument{..}
- all arguments{1..}
- all arguments after the first{..2}
- all arguments up to the second{1..3}
- arguments 2 to 4