1.0.3 • Published 6 years ago

cmsh v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Installation

npm install -g cmsh

Usage

Define shorthand :

cmsh d <shorthand> "<command>"

or

cmsh define <shorthand> "<command>"

Run command using shorthand :

cmsh r <shorthand>

or

cmsh run <shorthand>

List all defined shorthands :

cmsh l

or

cmsh list

Example

cmsh d watch "echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_watches && echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_queued_events && echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_instances"
cmsh r watch

Development

Before starting, install these dependencies if you don't have them:

  • Git
  • Node.js, latest 8.x (LTS) version
  • npm, latest 6.x (LTS) version

Then, run the commands below in your terminal:

git clone https://github.com/AdityHirapara/cmd-shortener
cd cmd-shortener
npm install

To run:

sudo npm link