In Mac OS X Terminal I used
CTRL+R to enter a reverse history search.
However, if the command I want was not found (after repeated CTRL-R), then there must be a way to immediately exit back to the (empty) command prompt. Especially, with no historical command entered. Better yet, I haven’t executed anything on the command line?
The way to cancel your prompt after
Ctrl+G this will abort the search