Big fan of using history, I'd be lost if I didn't have it. My personal way of accessing it on Macs is by using Ctrl + R and that let's you do pretty much the same thing as the grep method and you don't have to do the second line to execute the expression. Give it a try!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.