There seems to be a markup typo because one of your bash examples starts with class equals bash (I'm using words to avoid my text being treated as markup).
What I've actually come here looking for is a way of interactive replaying sequence of command lines. I search for a command (^R), execute it (ENTER), and then want to access the next command in the history.
The comic you credit to justinsomnia is a variant of an XKCD comic. It might be nice to give credit to XKCD too.