Advertisement
Guest User

Alexander

a guest
May 3rd, 2009
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.13 KB | None | 0 0
  1. # /etc/inputrc: initialization file for readline
  2. #
  3. # For more information on how this file works, please see the
  4. # INITIALIZATION FILE section of the readline(3) man page
  5. #
  6. # Quick dirty little note:
  7. #  To get the key sequence for binding, you can abuse bash.
  8. #  While running bash, hit CTRL+V, and then type the key sequence.
  9. #  So, typing 'ALT + left arrow' in Konsole gets you back:
  10. #    ^[[1;3D
  11. #  The readline entry to make this skip back a word will then be:
  12. #    "\e[1;3D" backward-word
  13. #
  14.  
  15. # do not bell on tab-completion
  16. #set bell-style none
  17.  
  18. set meta-flag on
  19. set input-meta on
  20. set convert-meta off
  21. set output-meta on
  22.  
  23. # Completed names which are symbolic links to
  24. # directories have a slash appended.
  25. set mark-symlinked-directories on
  26.  
  27. $if mode=emacs
  28.  
  29. # for linux console and RH/Debian xterm
  30. # allow the use of the Home/End keys
  31. "\e[1~": beginning-of-line
  32. "\e[4~": end-of-line
  33. # mappings for "page up" and "page down" to step to the beginning/end
  34. # of the history
  35. "\e[5~": history-search-backward
  36. "\e[6~": history-search-forward
  37. # allow the use of the Delete/Insert keys
  38. "\e[3~": delete-char
  39. "\e[2~": quoted-insert
  40. # # mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
  41. "\e[5C": forward-word
  42. "\e[5D": backward-word
  43. "\e[1;5C": forward-word
  44. "\e[1;5D": backward-word
  45.  
  46. # gnome-terminal (escape + arrow key)
  47. "\e[5C": forward-word
  48. "\e[5D": backward-word
  49. # gnome-terminal (control + arrow key)
  50. "\e[1;5C": forward-word
  51. "\e[1;5D": backward-word
  52. # konsole / xterm / rxvt (escape + arrow key)
  53. "\e\e[C": forward-word
  54. "\e\e[D": backward-word
  55. # konsole (alt + arrow key)
  56. "\e[1;3C": forward-word
  57. "\e[1;3D": backward-word
  58. # konsole (control + arrow key)
  59. "\e[1;3C": forward-word
  60. "\e[1;3D": backward-word
  61. # aterm / eterm (control + arrow key)
  62. "\eOc": forward-word
  63. "\eOd": backward-word
  64.  
  65. $if term=rxvt
  66. "\e[8~": end-of-line
  67. $endif
  68.  
  69. # for non RH/Debian xterm, can't hurt for RH/Debian xterm
  70. "\eOH": beginning-of-line
  71. "\eOF": end-of-line
  72.  
  73. # for freebsd console
  74. "\e[H": beginning-of-line
  75. "\e[F": end-of-line
  76. $endif
  77.  
  78. # fix Home and End for German users
  79. "\e[7~": beginning-of-line
  80. "\e[8~": end-of-line
  81.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement