Skip to content

Commit

Permalink
GH-92: also try bindkey with $terminfo for arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaku committed May 13, 2019
1 parent 2c36e4d commit 0f80b8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ Usage
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down

However, if the observed values don't work, you can try using terminfo:

bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey "$terminfo[kcud1]" history-substring-search-down

You might also want to bind the Control-P/N keys for use in EMACS mode:

bindkey -M emacs '^P' history-substring-search-up
Expand Down

0 comments on commit 0f80b8e

Please sign in to comment.