@nebula2003/cmd-alias
v1.0.4
Published
Alias Command Tool is a powerful CLI utility that simplifies your workflow by allowing you to create and execute custom command aliases at the directory level. By reading aliases from a configuration file (r.config.json), it enables developers and power u
Downloads
4
Readme
Alias Command Tool
Alias Command Tool is a powerful CLI utility that simplifies your workflow by allowing you to create and execute custom command aliases at the directory level. By reading aliases from a configuration file (r.config.json), it enables developers and power users to run complex commands effortlessly with simple, predefined aliases.
Features
- Define and execute command aliases at the directory level.
- Automatically redirect command output to the terminal.
Installation
To install the Alias Command Tool globally, run:
npm install -g @nebula2003/cmd-alias
Usage
Create a Configuration File In the directory where you want to use your aliases, create an r.config.json file. This file will contain your command aliases and settings.
{ "gf": "git fetch --all", "sl": "npm run start:local", "test": "npm run test" }
Run an Alias To run an alias, use the
c
command followed by the alias name.c gf
This will execute the
git fetch --all
command.