README: add Fedora 21 to fallback up/down bindkey
https://github.com/zsh-users/zsh-history-substring-search/issues/37#issuecomment-96327615
This commit is contained in:
parent
6d7bc718ae
commit
c4a83561a1
1 changed files with 5 additions and 6 deletions
11
README.md
11
README.md
|
|
@ -40,6 +40,11 @@ Usage
|
||||||
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
||||||
bindkey "$terminfo[kcud1]" history-substring-search-down
|
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
|
# bind P and N for EMACS mode
|
||||||
bindkey -M emacs '^P' history-substring-search-up
|
bindkey -M emacs '^P' history-substring-search-up
|
||||||
bindkey -M emacs '^N' history-substring-search-down
|
bindkey -M emacs '^N' history-substring-search-down
|
||||||
|
|
@ -48,12 +53,6 @@ Usage
|
||||||
bindkey -M vicmd 'k' history-substring-search-up
|
bindkey -M vicmd 'k' history-substring-search-up
|
||||||
bindkey -M vicmd 'j' history-substring-search-down
|
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:
|
3. Type any part of any previous command and then:
|
||||||
|
|
||||||
* Press the UP arrow key to select the nearest command that (1) contains
|
* Press the UP arrow key to select the nearest command that (1) contains
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue