From c4a83561a12b898ff7145856d0e6ae50757e28ba Mon Sep 17 00:00:00 2001 From: "Suraj N. Kurapati" Date: Sun, 26 Apr 2015 20:17:10 -0700 Subject: [PATCH] README: add Fedora 21 to fallback up/down bindkey https://github.com/zsh-users/zsh-history-substring-search/issues/37#issuecomment-96327615 --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cdabc77..042714c 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,11 @@ Usage bindkey "$terminfo[kcuu1]" history-substring-search-up bindkey "$terminfo[kcud1]" history-substring-search-down + # bind UP and DOWN arrow keys (compatibility fallback + # for Ubuntu 12.04, Fedora 21, and MacOSX 10.9 users) + bindkey '^[[A' history-substring-search-up + bindkey '^[[B' history-substring-search-down + # bind P and N for EMACS mode bindkey -M emacs '^P' history-substring-search-up bindkey -M emacs '^N' history-substring-search-down @@ -48,12 +53,6 @@ Usage bindkey -M vicmd 'k' history-substring-search-up bindkey -M vicmd 'j' history-substring-search-down - Ubuntu 12.04 and MacOSX 10.9 users might need to use this snippet instead: - - # bind UP and DOWN arrow keys - bindkey '^[[A' history-substring-search-up - bindkey '^[[B' history-substring-search-down - 3. Type any part of any previous command and then: * Press the UP arrow key to select the nearest command that (1) contains