/ .inputrc
.inputrc
 1  # Include system wide settings which are ignored if ~/.inputrc exists
 2  $include /etc/inputrc
 3  
 4  
 5  # Ring the bell, let other programs handle it (urxvt, tmux, etc.)
 6  set bell-style audible
 7  
 8  # Don't display control characters like ^C if I input them
 9  set echo-control-characters Off
10  
11  # Expand tilde to full path on completion
12  set expand-tilde On
13  
14  # Paginate possible completions
15  set page-completions On
16  
17  
18  # Ignore case when matching and completing paths
19  #set completion-ignore-case On
20  
21  # Treat underscores and hyphens the same way for completion purposes
22  set completion-map-case On
23  
24  # Show me up to 5,000 completion items, don't be shy
25  set completion-query-items 5000
26  
27  # Preserve caret position while browsing through history lines
28  set history-preserve-point On
29  
30  # When completing directories, add a trailing slash
31  set mark-directories On
32  
33  # Do the same for symlinked directories
34  set mark-symlinked-directories On
35  
36  # on menu-complete, first display the common prefix, then cycle through the
37  # options when hitting TAB
38  set menu-complete-display-prefix On
39  
40  # Show multiple completions on first tab press
41  set show-all-if-ambiguous On
42  
43  # Don't re-complete already completed text in the middle of a word
44  set skip-completed-text On
45  
46  # Show extra file information when completing, like `ls -F` does
47  set visible-stats on
48  
49  #set blink-matching-paren on
50  #set enable-bracketed-paste on
51  
52  $if Bash
53  "\es": "\C-asudo \C-e"
54  "\el": "\C-e 2>&1 | lnav"
55  "\ev": "\C-e 2>&1 | $VISUAL -"
56  	set show-mode-in-prompt on
57  	set vi-ins-mode-string \1\e[6 q\2
58  	set vi-cmd-mode-string \1\e[2 q\2
59  $else
60  #Space: magic-space
61  	set show-mode-in-prompt on
62  	set editing-mode vi-insert
63  	# TAB by itself cycles through options
64  	"\t": menu-complete
65  $endif
66  
67  "\C-p": history-search-backward
68  "\eOA": history-search-backward
69  "\eOB": history-search-forward
70  "\C-z": undo
71  
72  
73  set enable-keypad on
74  
75  
76  $include ~/.inputrc.d/bash
77  $include ~/.inputrc.d/colors
78  $include ~/.inputrc.d/lnav
79  $include ~/.inputrc.d/tmux