Add C-p and C-n to zsh (forward-backward)

This commit is contained in:
Emmet 2024-10-21 21:42:54 -05:00
parent b4a99c6090
commit 4469e7c8ff

View file

@ -26,6 +26,8 @@ in
%F{green}%f " %F{green}%f "
RPROMPT="%F{red}%f%F{yellow}%f%F{green}%f%F{cyan}%f%F{blue}%f%F{magenta}%f%F{white}%f" RPROMPT="%F{red}%f%F{yellow}%f%F{green}%f%F{cyan}%f%F{blue}%f%F{magenta}%f%F{white}%f"
[ $TERM = "dumb" ] && unsetopt zle && PS1='$ ' [ $TERM = "dumb" ] && unsetopt zle && PS1='$ '
bindkey '^P' history-beginning-search-backward
bindkey '^N' history-beginning-search-forward
''; '';
}; };