Searching forward through bash history
I think you may like Rob's Terminal History Management. You get matches, then the up and down arrow keys let you browse. Almost forgot, the file you want to edit is now ".bash_profile". Open your home folder and press ⇧⌘. to see it.