-
Notifications
You must be signed in to change notification settings - Fork 0
/
inputrc
46 lines (36 loc) · 868 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
$include /etc/inputrc
# Options
set bell-style none
set colored-completion-prefix on
set colored-stats on
set completion-ignore-case on
set mark-symlinked-directories on
set match-hidden-files off
set show-all-if-ambiguous on
set visible-stats on
$if Bash
# do history expansion when space entered
Space: magic-space
$endif
"\eOA": history-search-backward
"\eOB": history-search-forward
# C-Left C-Right
"\e[1;5D": backward-word
"\e[1;5C": forward-word
"\eOD": backward-word
"\eOC": forward-word
# A-Left A-right
"\e[1;3D": backward-word
"\e[1;3C": forward-word
# Page up/down
"\e[5~": backward-word
"\e[6~": forward-word
# Ctrl+Delete
"\e[3;3~": kill-word
"\e[3;5~": kill-word
"\C-\b": backward-kill-word
"\C-\d": kill-word
# Shift+Tab cycles between completions if multiple
"\e[Z": menu-complete
# Ctrl+D deletes the whole line
"\C-d": kill-whole-line