inputrc 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. ##### My (demuredemeanor) .inputrc
  2. # Uses shiftwidth=4 for tabs; foldmarker={{{,}}} for folds;
  3. # https://notabug.org/demure/dotfiles/
  4. # legacy repo http://github.com/demure/dotfiles
  5. ### Completion Stuffs ### {{{
  6. ## Tab complete ignores case
  7. set completion-ignore-case on
  8. ## Comp longest explicit match, then print remaining values
  9. set show-all-if-ambiguous on
  10. ## With ignore on, will ignore diff between '-' and '_'
  11. set completion-map-case on
  12. ## Disable more-like pager of completion list
  13. set page-completions off
  14. ## Steps through list, can give n first
  15. "\t": menu-complete
  16. ## Colored completion based on filetype
  17. set colored-stats on
  18. ## When completing in middle of word, don't dupe matching text after word
  19. set skip-completed-text on
  20. ## Show filetype info in completion suggestions, like ls -F output
  21. set visible-stats on
  22. ## Shift-TAB to menu-complete backwards
  23. # cf. http://www.tikirobot.net/wp/2006/03/29/reverse-menu-complete-in-bash/
  24. # \C-y:"\M--\C-i"
  25. ## Append symbol for file, in tab completion
  26. set visible-stats on
  27. ### End Completion Stuffs ### }}}
  28. ### Keyboard ### {{{
  29. "\e[3~": delete-char
  30. "\e[A": history-search-backward
  31. "\e[B": history-search-forward
  32. ### End Keyboard ### }}}
  33. ### History Stuffs ### {{{
  34. ## Ended up disabling these as the prompt got a bit wonky
  35. # set mark-modified-lines on
  36. # set history-preserve-point on
  37. ### End History Stuffs ### }}}
  38. ### Editing Mode ### {{{
  39. ## I prefer some of emacs key bindings as OS X uses them.
  40. # set editing-mode vi
  41. # set keymap vi-insert
  42. # vi-command vi-insert
  43. ### End Editing Mode ### }}}
  44. ### For Other Languages ### {{{
  45. ## Enable 8 bit input (doesn't clear 8th bit in chars it reads)
  46. set meta-flag on
  47. ## Same flag...
  48. set input-meta on
  49. ## Display chars' 8th bit set directly, instead of esc sequence
  50. set output-meta on
  51. ## Prevent 8th bit strip
  52. set convert-meta off
  53. ### End Other Languages ### }}}
  54. ### For Bell ### {{{
  55. set bell-style audible
  56. ### End Bell ### }}}
  57. ### Testing ### {{{
  58. ## Add missing / when tab-completing symbolic links to dirs
  59. # set mark-symlinked-directories on
  60. ### End Testing ### }}}