This is what I came up with: if you want to read the cheat sheet for React, just type
$ hint react
and, voila, the sheet appears.
The shell script needs both
mdless, which you can install using your favorite package manager. The sheets are fetched from Devhints.IO’s Github repository.
Sheet files are cached in
$HOME/.hack and can be refreshed using the
--refresh command-line argument.
If you like the idea of cheat sheets in your terminal, you might also want to checkout TLDR, which explains tools using examples - basically, it just reverses the classic man pages ;)
Let me know if you have a better way or some idea for improving this tiny snippet: