Browse Source

Match ^P and ^N to up/down

Thomas Dy 5 năm trước cách đây
mục cha
commit
6c8380d066
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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