This small tool helps me record and access commands I use frequently. You'd normally just use your shell history for this, but after having my shell history deleted a couple of times and for the convenience of having all my day-to-day commands in one gitable location, I decided it's worth the effort.
So that's it - no installation needed, just clone the repo and you're good to go. For optimal experience add the repo to your path.
cmdb
cmdb show
cmdb run <command number> <parameters>
if a command is not specified the commands db is showed
cmdb add '<command >'
cmdb edit
- In edit mode - make sure to leave a trailing blank line at the end of the file.
- Parameters are concatenated to the end of the command (may change in the future).
- Feel free to contribute.