From 0f80b8eb3368b46e5e573c1d91ae69eb095db3fb Mon Sep 17 00:00:00 2001 From: "Suraj N. Kurapati" Date: Sun, 12 May 2019 17:35:54 -0700 Subject: [PATCH] GH-92: also try bindkey with $terminfo for arrows --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index c9dbad6..77f3649 100644 --- a/README.md +++ b/README.md @@ -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