← Back to context

Comment by gpmcadam

4 years 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