shortcuts snippets

How to fix the iTerm keyboard bindings in OSX (readline configuration)

Tagged zsh, readline, keyboard, shortcuts  Languages bash

The keyboard bindings in iTerm on OSX Snow Leopard are fubar. To fix them either switch to Linux or put this in your zsh configuration:

bindkey "^r" history-incremental-search-backward
bindkey '^E' end-of-line
bindkey '^A' beginning-of-line
bindkey 'ƒ'  forward-word
bindkey '›'  backward-word
bindkey "^F" forward-char
bindkey "^B" backward-char
bindkey "^k" kill-line
bindkey "^u" backward-kill-line