-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinputrc
26 lines (21 loc) · 862 Bytes
/
inputrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Include system wide settings which are ignored
# by default if one has their own .inputrc
$include /etc/inputrc
# Enable coloring for tab completions with bash >= 4.3
set colored-stats on
set editing-mode vi
set completion-ignore-case on
# Don't echo ^C etc (new in bash 4.1)
# Note this only works for the command line itself,
# not if already running a command.
set echo-control-characters off
# By default up/down are bound to previous-history
# and next-history respectively. The following does the
# same but gives the extra functionality where if you
# type any text (or more accurately, if there is any text
# between the start of the line and the cursor),
# the subset of the history starting with that text
# is searched (like 4dos for e.g.).
# Note to get rid of a line just Ctrl-C
"\e[B": history-search-forward
"\e[A": history-search-backward