-
Notifications
You must be signed in to change notification settings - Fork 0
/
inputrc
65 lines (46 loc) · 1.21 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
# readline .inputrc
# Be 8-bit clean
set input-meta on
set output-meta on
# no bell
set bell-style none
# set emacs keybindings
set editing-mode emacs
# tab complete ignoring case
set completion-ignore-case on
# don't expand ~ in completions
set expand-tilde off
# wrap to next line instead of scrolling when line overflows
set horizontal-scroll-mode off
# append slash when completing directory names
set mark-directories on
# show list at first TAB instead of beeping
set show-all-if-ambiguous on
# only ask y/n for really big lists
set completion-query-items 1000
#set enable-keypad on
# ---------- keybindings
# home
"\e[1~": beginning-of-line
"\eOH": beginning-of-line
"\e[H": beginning-of-line
# end
"\e[4~": end-of-line
"\e[8~": end-of-line
"\eOF": end-of-line
"\e[F": end-of-line
# Del
"\e[3~": delete-char
# Ctrl-Backspace
"\C-?": backward-kill-word
"\C-_": backward-kill-word
# Ctrl-Delete
"\e[3;5~": kill-word
# Ctrl-right arrow
"\e[5C": forward-word
"\e[1;5C": forward-word
"\eOC": forward-word
# Ctrl-left arrow
"\e[5D": backward-word
"\e[1;5D": backward-word
"\eOD": backward-word