Command vault
Save any command or script under a short name. Tag it, describe it, run it with -x.
$ cwm save gs "git status -sb"
v2.0.0 · Go · one binary · SQLite
CWM is a single-binary Go CLI that saves your shell commands under short names, records history per folder and syncs across PCs. No runtime, no daemon.
$ cwm save hello "echo Hello World" -t util -d "Greets user"
Saved [util] hello = echo Hello World (Greets user)
$
Save any command or script under a short name. Tag it, describe it, run it with -x.
$ cwm save gs "git status -sb"
An optional shell hook records each command with the folder it ran in. Secrets are skipped.
$ cwm watch start
Remove duplicate lines from your history file. Multi-line commands stay whole. A backup is written first.
$ cwm tidy history
Point two PCs at one folder. CWM merges both ways, and deletes stick.
$ cwm config -c D:/shared/cwm
Deleted commands go to a trash buffer of 100. Restore one by name.
$ cwm clear -r gs
One file. Unzip it, put it on your PATH, and check that it runs.
$ cwm hello
Adds one block to your profile so saved commands run in your current shell.
$ cwm setup
Give a long command a short name. Run it with -x.
$ cwm save gs "git status -sb" && cwm get gs -x