Skip to content

Configurable per-directory command aliases and scripts

License

Notifications You must be signed in to change notification settings

bcheidemann/runrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RunRC

Configurable per-directory command aliases and scripts.

Installation

Deno

deno install -A -n runrc -f https://deno.land/x/runrc/src/main.ts

NPM

npm install -g runrc

Usage

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!

Templating

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

About

Configurable per-directory command aliases and scripts

Resources

License

Stars

Watchers

Forks

Packages

No packages published