New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cmsh

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cmsh

Tool to define shorthand for your frequently used and tediously long commands

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

CMD-Shortener

Tool to define shorthand for your frequently used and tediously long commands.

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

Open issues and PRs, feel free to contribute.
Also if you liked it, then do star the repo and share with your friends!

Keywords

command

FAQs

Package last updated on 11 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts