command-stash
v1.6.1
Published
console help tool for save, list and retrive to clipboard your important shell commands
Downloads
2
Readme
node-cmd-stash
Usefull tool for:
- save
- list
- retrive (to clipboard)
- delete
- export to stash cloud
- import from stash cloud
- manage list groups (packs)
- execute
your important shell commands.
Install
npm install -g command-stash
NOTE: For "copy to clipboard" functionality you need, xclip
(for Linux, FreeBSD, and OpenBSD), and clip
(for Windows). Pbcopy/pbpaste already installed on OSX.
Currently only works with nodejs >= v6.9.3 due ES6 use.
Usage
#stash some commands
#NOTE: stash [push | p] <command> olso works
stash docker run -d --hostname MQ37 --name mq37 -p 5672:5672 f00f2babc0bd
stash "for i in {1..40}; do node ./publisher.js; done"
stash sudo nmap -n -PN -sT -sU -p- remote_host
# list stashed commands:
stash [list | l]
# get a stashed command copied to your clipboard:
stash [get | g] <id>
# remove a stashed command from the list:
stash pop <id>
# Now you can have all your packs anywhere, ask for a beta token!
# export packs and stashed commands to stash.cloud :
stash export <token>
# import packs and stashed commands from stash.cloud:
stash import <token>
# exec a stashed command:
stash [exec | run] <id>
# Run detached, optional custom stdout filepath redirection:
stash [exec | run] <id> detached <stdout_filepath :: defaults to './<id>.out' >
# list packs of stashed commands:
stash pack list
# Switch between packs:
stash pack switch <id|name>
# Add a new pack:
stash pack add <name>
# Remove a entirly pack:
stash pack remove <id>
Changelog
1.6.0:
Stash save action is now deprecated, since anonymous gist creation
was removed.
Save is intended to be replaced by export and import actions. Just ask me for a TOKEN, stash.cloud service is up.
List action, now prints without line overflow.
Updated sqlite3 dep.
1.5.0:
Added autocompletion generation and install (for Bash and Zsh).
Now, stash notifies when a new release of the tool is available for update.
1.4.0:
Running commands within stash is more stable.
Now, you can run commands detached, and specify the stdout piping file path.
1.3.0:
Added "packs" functionality.
Added "exec" option.
General code refactory.
ESlint.
postinstall migration script for safe 1.2.0 to 1.3.0 update.
1.2.0:
Added "save" option.
This publish your current command stash at a anonymous gist via the github api and retrives the link to your cb.
Added options aliases.