cmd-snippets
v1.3.1
Published
Create cmd snippets
Downloads
8
Maintainers
Readme
cmd-snippets
Create cmd snippets
Install
npm
npm i -g cmd-snippets
yarn
yarn global add cmd-snippets
Usage
Add script to %appdata%/cmd-snippets-storage
echo console.log('hello world') >> C:\\Users\\User\\AppData\\Roaming\\cmd-snippets-storage\\hello-world.js
Or
echo "console.log('hello world')" >> ~/.config/cmd-snippets-storage/hello-world.js
And now you can run it with
snip hello-world
To list all snippets run
snip list
Currently support python and node (but it can be extended in EXECUTORS)