Join GitHub today
Key Bindings #12
Should it bind itself, or should it allow the user to bind it manually, and if it should bind itself, should not it bind itself to more keys?
Right now, it only binds itself to the following sequences, which I believe are not valid for all terminals. There are also
bindkey '\e[A' history-substring-search-up bindkey '\e[B' history-substring-search-down
In my OMZ fork, I actually use
bindkey -M emacs "^P" history-substring-search-up bindkey -M emacs "^N" history-substring-search-down bindkey -M vicmd "k" history-substring-search-up bindkey -M vicmd "j" history-substring-search-down for keymap in 'emacs' 'viins'; do bindkey -M "$keymap" '\e[A' history-substring-search-up bindkey -M "$keymap" '\e[B' history-substring-search-down done unset keymap
added a commit
Nov 22, 2012
@legionsb and other Ubuntu or Debian users take note!
Adding this snippet to your
# allow UP and DOWN arrow keys in xterm(1) to be re-bindable within ZSH # https://bugs.launchpad.net/ubuntu/+source/zsh/+bug/1048212/comments/6 DEBIAN_PREVENT_KEYBOARD_CHANGES=yes
This worked for me in Ubuntu 12.10.