Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.12 KB | None | 0 0
  1. # To the extent possible under law, the author(s) have dedicated all
  2. # copyright and related and neighboring rights to this software to the
  3. # public domain worldwide. This software is distributed without any warranty.
  4. # You should have received a copy of the CC0 Public Domain Dedication along
  5. # with this software.
  6. # If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
  7.  
  8. # ~/.inputrc: readline initialization file.
  9.  
  10. # The copy in your home directory (~/.inputrc) is yours, please
  11. # feel free to customise it to create a shell
  12. # environment to your liking. If you feel a change
  13. # would be benifitial to all, please feel free to send
  14. # a patch to the msys2 mailing list.
  15.  
  16. # Just flash screen, don't beep
  17. set bell-style none
  18.  
  19. # Be case-insensitive (nice on Windows machines)
  20. set completion-ignore-case on
  21.  
  22. # These are also nice for tab-completion
  23. set completion-query-items 80
  24. set mark-symlinked-directories on
  25. set print-completions-horizontally on
  26. #set show-all-if-unmodified on
  27. set show-all-if-ambiguous on
  28.  
  29. # Append "/" to all dirnames
  30. set mark-directories on
  31. set mark-symlinked-directories on
  32.  
  33. # Home/End Key
  34. "\e[H":beginning-of-line
  35. "\e[F":end-of-line
  36.  
  37. # Ctrl left/right skip words
  38. "\e[1;5D":backward-word
  39. "\e[1;5C":forward-word
  40.  
  41. # Ctrl Shift left/right
  42. "\e[1;6D":backward-kill-word
  43. "\e[1;6C":kill-word
  44.  
  45. # Up/Down arrows
  46. "\e[A": history-search-backward
  47. "\e[B": history-search-forward
  48.  
  49. # Page up/down for beginning/end of history
  50. #"\e[5~":beginning-of-history
  51. #"\e[6~":end-of-history
  52.  
  53. #"\e[1;2B": history-search-forward
  54. #"\e[1;2A": history-search-backward
  55.  
  56. # the following line is actually
  57. # equivalent to "\C-?": delete-char
  58. # "\e[3~": delete-char
  59.  
  60. # VT
  61. # "\e[1~": beginning-of-line
  62. # "\e[4~": end-of-line
  63.  
  64. # kvt
  65. # "\e[H": beginning-of-line
  66. # "\e[F": end-of-line
  67.  
  68. # rxvt and konsole (i.e. the KDE-app...)
  69. # "\e[7~": beginning-of-line
  70. # "\e[8~": end-of-line
  71.  
  72. # VT220
  73. # "\eOH": beginning-of-line
  74. # "\eOF": end-of-line
  75.  
  76. # Allow 8-bit input/output
  77. # set meta-flag on
  78. # set convert-meta off
  79. # set input-meta on
  80. # set output-meta on
  81. #$if Bash
  82. # Don't ring bell on completion
  83. set bell-style none
  84.  
  85. # or, don't beep at me - show me
  86. #set bell-style visible
  87.  
  88. # Show all instead of beeping first
  89. set show-all-if-ambiguous off
  90.  
  91. # Filename completion/expansion
  92. set completion-ignore-case on
  93. #set show-all-if-ambiguous on
  94.  
  95. # Expand homedir name
  96. #set expand-tilde on
  97.  
  98. # Append "/" to all dirnames
  99. #set mark-directories on
  100. #set mark-symlinked-directories on
  101.  
  102. # visible-stats
  103. # Append a mark according to the file type in a listing
  104. set visible-stats off
  105. set mark-directories on
  106.  
  107. # Match all files
  108. #set match-hidden-files on
  109.  
  110. # 'Magic Space'
  111. # Insert a space character then performs
  112. # a history expansion in the line
  113. #Space: magic-space
  114. #$endif
  115.  
  116. # MSYSTEM is emacs based
  117. $if mode=emacs
  118. # Common to Console & RXVT
  119. "\C-?": backward-kill-line # Ctrl-BackSpace
  120. "\e[2~": paste-from-clipboard # "Ins. Key"
  121. "\e[5~": beginning-of-history # Page up
  122. "\e[6~": end-of-history # Page down
  123.  
  124. $if term=msys # RXVT
  125. "\e[7~": beginning-of-line # Home Key
  126. "\e[8~": end-of-line # End Key
  127. "\e[11~": display-shell-version # F1
  128. "\e[15~": re-read-init-file # F5
  129. "\e[12~": "Function Key 2"
  130. "\e[13~": "Function Key 3"
  131. "\e[14~": "Function Key 4"
  132. "\e[17~": "Function Key 6"
  133. "\e[18~": "Function Key 7"
  134. "\e[19~": "Function Key 8"
  135. "\e[20~": "Function Key 9"
  136. "\e[21~": "Function Key 10"
  137. $else
  138. # Eh, normal Console is not really cygwin anymore, is it? Using 'else' instead. -mstormo
  139. # $if term=cygwin # Console
  140. "\e[1~": beginning-of-line # Home Key
  141. "\e[4~": end-of-line # End Key
  142. "\e[3~": delete-char # Delete Key
  143. "\e\e[C": forward-word # Alt-Right
  144. "\e\e[D": backward-word # Alt-Left
  145. "\e[17~": "Function Key 6"
  146. "\e[18~": "Function Key 7"
  147. "\e[19~": "Function Key 8"
  148. "\e[20~": "Function Key 9"
  149. "\e[21~": "Function Key 10"
  150. "\e[23~": "Function Key 11"
  151. $endif
  152. $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement