-
Notifications
You must be signed in to change notification settings - Fork 6
/
.inputrc
52 lines (41 loc) · 1.28 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
# retrieved 2022-09-14 from https://www.linuxfromscratch.org/blfs/view/5.1/postlfs/inputrc.html
# configuration file for readline (aka "tab completion")
# this is done in /etc/inputrc, but they only enabled it for emacs mode:
# Use a flash instead of a ding.
set bell-style visible
# Make sure we don't output everything on the 1 line
set horizontal-scroll-mode Off
# Enable 8bit input
set meta-flag On
set input-meta On
# Turns off 8th bit stripping
set convert-meta Off
# Keep the 8th bit for display
set output-meta On
# tab completion!
tab: complete
# All of the following map the escape sequence of the
# value contained inside the 1st argument to the
# readline specific functions
"\eOd": backward-word
"\eOc": forward-word
# for linux console
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
# for xterm
"\eOH": beginning-of-line
"\eOF": end-of-line
# the useful bits of the default "emacs style" bash keymap:
# bash --norc -c 'bind -pm emacs' | grep -Ev 'not bound|self-insert|do-lowercase'
"\C-s": forward-search-history
"\C-n": next-history
"\eOB": next-history
"\e[B": next-history
"\C-p": previous-history
"\eOA": previous-history
"\e[A": previous-history
"\C-r": reverse-search-history