inputrc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # /etc/inputrc - global inputrc for libreadline
  2. # See readline(3readline) and `info rluserman' for more information.
  3. # Be 8 bit clean.
  4. set input-meta on
  5. set output-meta on
  6. # To allow the use of 8bit-characters like the german umlauts, uncomment
  7. # the line below. However this makes the meta key not work as a meta key,
  8. # which is annoying to those which don't need to type in 8-bit characters.
  9. # set convert-meta off
  10. # try to enable the application keypad when it is called. Some systems
  11. # need this to enable the arrow keys.
  12. # set enable-keypad on
  13. # see /usr/share/doc/bash/inputrc.arrows for other codes of arrow keys
  14. # do not bell on tab-completion
  15. # set bell-style none
  16. # set bell-style visible
  17. # some defaults / modifications for the emacs mode
  18. $if mode=emacs
  19. # allow the use of the Home/End keys
  20. "\e[1~": beginning-of-line
  21. "\e[4~": end-of-line
  22. # allow the use of the Delete/Insert keys
  23. "\e[3~": delete-char
  24. "\e[2~": quoted-insert
  25. # mappings for "page up" and "page down" to step to the beginning/end
  26. # of the history
  27. # "\e[5~": beginning-of-history
  28. # "\e[6~": end-of-history
  29. # alternate mappings for "page up" and "page down" to search the history
  30. # "\e[5~": history-search-backward
  31. # "\e[6~": history-search-forward
  32. # mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
  33. "\e[1;5C": forward-word
  34. "\e[1;5D": backward-word
  35. "\e[5C": forward-word
  36. "\e[5D": backward-word
  37. "\e\e[C": forward-word
  38. "\e\e[D": backward-word
  39. $if term=rxvt
  40. "\e[7~": beginning-of-line
  41. "\e[8~": end-of-line
  42. "\eOc": forward-word
  43. "\eOd": backward-word
  44. $endif
  45. # for non RH/Debian xterm, can't hurt for RH/Debian xterm
  46. # "\eOH": beginning-of-line
  47. # "\eOF": end-of-line
  48. # for freebsd console
  49. # "\e[H": beginning-of-line
  50. # "\e[F": end-of-line
  51. $endif