1.0.3 • Published 7 years ago
cmsh v1.0.3
Installation
npm install -g cmshUsage
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 lor
cmsh listExample
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 watchDevelopment
Before starting, install these dependencies if you don't have them:
Then, run the commands below in your terminal:
git clone https://github.com/AdityHirapara/cmd-shortener
cd cmd-shortener
npm installTo run:
sudo npm link