If you want to be able to search through your .bash_history inline, you can simply edit your ~/.inputrc file and add these two lines:
“\e[5~”: history-search-backward
“\e[6~”: history-search-forward
Now you can grep your .bash_history by using those two buttons.
Or you can just do ctrl+r