4 ms·
protip: use comments to remind yourself or make commands searchable, e.g. $ find . -iname 'package.json' -exec jq .version {} \; # get npm module version n
by gpmcadam 4y ago
protip: use comments to remind yourself or make commands searchable, e.g.
$ find . -iname 'package.json' -exec jq .version {} \; # get npm module version numbers for all packages
now when you search history you can do so with plain text:
$ history | grep 'npm module version'
you could of course take this further by 'tagging' commands if you wish and then grep for that tag later to return longer cheatsheets