If you’ve used a Unix system for any length of time you’ve probably read a man
page or two. Right after opening your first man
page you might have googled
something along the lines of “How to search in a man page”. man
pages are
dense, detailed, documents.
On the other hand, cheat.sh
provides a short, community curated
cheat sheet for many popular commands (and programming languages) filled with examples.
However, the defacto interface to cheat.sh
is curl
- not very user friendly.
This walks through my development process of creating a shell script that:
- Filters
cheat.sh
endpoints usingfzf
. - Formats the
curl
request (both the url string and response data). - Create a key bind to call the script.