To get the most recent command I can do:
However, this will also show commands that might have been typed in, but weren't run, for example, I may recently typed in:
But not actually executed it. And then if I go back and press us, it will fill in that last-entered text. Is there a way to skip not-entered-commands in the ctrl-n/p or elsewhere?