Skip to content

polioan/cmd-snippets

Repository files navigation

cmd-snippets

version license created by Ivan Polushin

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)