You may know about ctrl+shift+R for reverse case-insensitive search (or whatever it stands for) and that is still useful if you remember one very unique keyword from the middle of a command.
bash script compare text
if [ $var == "value" ]thenecho is the samefi
http://www.tech-recipes.com/rx/209/bournebash-shell-scripts-string-comparison/
(Numbers are -eq)