zsh: how do I get ctrl-p and ctrl-n keys to perform history-search-backward/forward like in bash?
Solution 1:
OK, the widget you need to get the behavior I describe is history-beginning-search-backward
So this works now:
bindkey '^P' history-beginning-search-backward
bindkey '^N' history-beginning-search-forward