I do this too, but you know what is an even cooler and more rewarding way to exploit the shell history?
By COMMENTING your commands:
$ grep -i myname /etc/passwd # passgrep
..
..
$ Ctrl-R "passgr"
It is so rewarding to do some intense bash work with liberal command line comments and then come back a few weeks later, "history | grep \#", and see my work notes - along with the relevant commands - available.
I used to write '~/bin' scripts for special stuff, including comments in the .sh source itself - but now it just makes more sense to wang a comment at the end of the complex/interesting commands and then just grep for the comment later ..