-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinputrc
71 lines (58 loc) · 1.58 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# do not bell on tab-completion
#set bell-style none
set meta-flag on
set input-meta on
set convert-meta off
set output-meta on
set show-all-if-ambiguous on
set show-all-if-unmodified on
set completion-ignore-case on
# treat - and _ as equivalent
set completion-map-case on
set match-hidden-files off
set blink-matching-paren on
set visible-stats on
set completion-query-items 9000
# Completed names which are symbolic links to
# directories have a slash appended.
set mark-symlinked-directories on
set completion-prefix-display-length 3
# Space:magic-space
"\C-p":history-search-backward
"\C-n":history-search-forward
# This doesn't work well with FZF completions
# TAB:menu-complete
# Sane Ctrl-W behavior
#set bind-tty-special-chars off
#"\C-w":backward-kill-word
"\M-\b":backward-kill-word
$if mode=emacs
# we can find these codes with `read` command
# for linux console and RH/Debian xterm
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# commented out keymappings for pgup/pgdown to reach begin/end of history
#"\e[5~": beginning-of-history
#"\e[6~": end-of-history
"\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[1;5C": forward-word
"\e[1;5D": backward-word
# for rxvt
"\e[8~": end-of-line
"\eOc": forward-word
"\eOd": backward-word
# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
"\eOH": beginning-of-line
"\eOF": end-of-line
# for freebsd console
"\e[H": beginning-of-line
"\e[F": end-of-line
# for gnome terminal
"\e[1;3D": backward-word
"\e[1;3C": forward-word
$endif