zsh ctrl p same behavior as up arrow
By default Ctrl-P just jump back to the history while up arrow behave a little bit smarter.
For example if you have history like this
Normaly if you type
Ctrl-Pafterwares, it will give you
to change this behavior, you can put this in your .zshrc
bindkey "^P" up-line-or-beginning-search
bindkey "^N" down-line-or-beginning-search