Guest

Untitled

By: a guest on Jan 28th, 2012  |  syntax: None  |  size: 0.52 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. bindkey -e
  2. bindkey ";5D" backward-word
  3. bindkey ";5C" forward-word
  4. bindkey "\e[H" beginning-of-line
  5. bindkey "\e[F" end-of-line
  6. bindkey "\e[3~" delete-char
  7. # /foo/bar/^W -> /foo/
  8. WORDCHARS="${WORDCHARS:s#/#}"
  9. # Better history management (acts like vim)
  10. autoload -U history-search-end
  11. zle -N history-beginning-search-backward-end history-search-end
  12. zle -N history-beginning-search-forward-end history-search-end
  13. bindkey "\e[A" history-beginning-search-backward-end
  14. bindkey "\e[B" history-beginning-search-forward-end