In bash, we can use the up and down arrow keys to get the last or nth previous command in history.
Can we do this in zsh?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
man zshzle you should be able to
down-history (unbound) (^N) (unbound) Move to the next event in the history list up-history (unbound) (^P) (unbound) Move to the previous event in the history list.
Also, not sure if you know already, but there is also oh-my-zsh. This customization of zsh does come with down/up as well as previously mentioned ctrl+n/ctrl+p for next/previous in history list, respectively