-
Notifications
You must be signed in to change notification settings - Fork 14
/
inputrc
70 lines (60 loc) · 1.8 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
# .inputrc: initialization file for readline
#
# for more information on how this file works, please see the
# initialization file section of the readline(3) man page
#
# quick dirty little note:
# to get the key sequence for binding, you can abuse bash.
# while running bash, hit ctrl+v, and then type the key sequence.
# so, typing 'alt + left arrow' in konsole gets you back:
# ^[[1;3D
# the readline entry to make this skip back a word will then be:
# "\e[1;3D" backward-word
#
# do not bell on tab-completion
set bell-style none
# 8bit settings
set meta-flag on
set input-meta on
set convert-meta off
set output-meta on
# append a slash to completed names which are symbolic links to directories
set mark-symlinked-directories on
$if mode=vi
set keymap vi-command
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[5~": history-search-backward
"\e[6~": history-search-forward
set keymap vi-insert
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[5~": history-search-backward
"\e[6~": history-search-forward
$endif
$if mode=emacs
# for linux console and rh/debian xterm
# allow the use of the home/end keys
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# allow the use of the delete/insert keys
"\e[3~": delete-char
"\e[2~": quoted-insert
# use up/down arrows to search history
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[5~": history-search-backward
"\e[6~": history-search-forward
# mappings for ctrl-left-arrow and ctrl-right-arrow for word moving
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
$if term=rxvt
"\e[8~": end-of-line
"\eOc": forward-word
"\eOd": backward-word
$endif
$endif