RedditPP Mascot

RedditPP

r/zsh • … • u/dom

how to operate-and-get-next in zsh?

Back when I was using bash I used to be able to go back a few commands in my history (with up-arrow), then hit control-O to execute the command, then show the next command from my history ready to execute. Is there a way to do this in zsh? Or if not is there a best practice for running a couple of lines of consecutive code from your history?

— 0