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