0.0.3 • Published 3 years ago

shellcut v0.0.3

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

shellcut

Create shortcut commands and easily call them when needed.

How to install

npm install -g shellcut

Quick start

Create shellcut example.

shellcut create hw "echo hello shellcut!"

Type this.

__hw

result

Why is '__' include?

Because, it helps you find the existed shellcut quickly by pressing the Tab key. Other words ($, @,%, etc) are already in use or cannot be used in shell, powershell, cmd, etc.

Commands

create

Create new shellcut command.

shellcut create <shellcut> <original command>

list

Show existed shellcuts.

shellcut list

If you want to filtered by name, use option '--call' or '-c'. 'word' is used to search by contains of shellcut name condition.

shellcut list --call <word>

If you want to filtered by original comand, use option '--cmd' or '-o'. 'word' is used to search by contains of command condition.

shellcut list --cmd <word>

You can use both options.

shellcut list --call <word1> --cmd <word2>

remove

remove existed shellcut.

shellcut remove <shellcut>