key-bindings.zsh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # TODO: Explain what some of this does..
  2. bindkey -e
  3. bindkey '\ew' kill-region
  4. bindkey -s '\el' "ls\n"
  5. bindkey -s '\e.' "..\n"
  6. bindkey '^r' history-incremental-search-backward
  7. bindkey "^[[5~" up-line-or-history
  8. bindkey "^[[6~" down-line-or-history
  9. # make search up and down work, so partially type and hit up/down to find relevant stuff
  10. bindkey '^[[A' up-line-or-search
  11. bindkey '^[[B' down-line-or-search
  12. bindkey "^[[H" beginning-of-line
  13. bindkey "^[[1~" beginning-of-line
  14. bindkey "^[[F" end-of-line
  15. bindkey "^[[4~" end-of-line
  16. bindkey ' ' magic-space # also do history expansion on space
  17. bindkey '^[[Z' reverse-menu-complete
  18. # consider emacs keybindings:
  19. #bindkey -e ## emacs key bindings
  20. #
  21. #bindkey '^[[A' up-line-or-search
  22. #bindkey '^[[B' down-line-or-search
  23. #bindkey '^[^[[C' emacs-forward-word
  24. #bindkey '^[^[[D' emacs-backward-word
  25. #
  26. #bindkey -s '^X^Z' '%-^M'
  27. #bindkey '^[e' expand-cmd-path
  28. #bindkey '^[^I' reverse-menu-complete
  29. #bindkey '^X^N' accept-and-infer-next-history
  30. #bindkey '^W' kill-region
  31. #bindkey '^I' complete-word
  32. ## Fix weird sequence that rxvt produces
  33. #bindkey -s '^[[Z' '\t'
  34. #