Browse Source

Match ^P and ^N to up/down

Thomas Dy 5 years ago
parent
commit
6c8380d066
1 changed files with 2 additions and 0 deletions
  1. 2 0
      .zsh/config.zsh

+ 2 - 0
.zsh/config.zsh

@@ -48,6 +48,8 @@ zle -N up-line-or-beginning-search
 zle -N down-line-or-beginning-search
 bindkey "${terminfo[kcuu1]}" up-line-or-beginning-search
 bindkey "${terminfo[kcud1]}" down-line-or-beginning-search
+bindkey "^P" up-line-or-beginning-search
+bindkey "^N" down-line-or-beginning-search
 
 autoload -z edit-command-line
 zle -N edit-command-line