-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinputrc
45 lines (39 loc) · 997 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
#include system wide settings
$include /etc/inputrc
#if we're in vi mode, set the more convenient emacs bindings for beginning
#and end of line
$if mode=vi
C-a: beginning-of-line
C-e: end-of-line
$endif
set completion-ignore-case on
set expand-tilde on
set match-hidden-files off
#set show-all-if-ambiguous on
set show-all-if-unmodified on
C-b: backward-char
C-f: forward-char
M-b: backword-word
M-n: forward-word
M-g: backward-kill-word
C-j: next-history
C-k: previous-history
C-g: backward-kill-word
"\e[A": history-search-backward
"\e[B": history-search-forward
#C-j: menu-complete
#C-k: menu-complete-backward
#TAB: menu-complete
#"\e[1~": beginning-of-line
#"\e[4~": end-of-line
#"\e[5~": history-search-backward
#"\e[6~": history-search-forward
#"\e[3~": delete-char
#"\e[2~": quoted-insert
#"\e[5C": forward-word
#"\e[5D": backward-word
#"\e\e[C": forward-word
#"\e\e[D": backward-word
# page up/down to history search
"\e[5~": history-search-backward
"\e[6~": history-search-forward