~/.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
72
73
74
75
76
77
78
79
# @(#) ~/.inputrc - стартовый файл библиотеки Readline
# Modified by dMitry Alexandrov <dmitry.alexandrow@gmail.com>
# use vi line editing commands:
#set editing-mode vi
# Не выводим ничего в первой строке
set horizontal-scroll-mode Off
#display an asterisk (*) at the start of modified history lines
set mark-modified-lines On
# Ignore case for the command-line-completion functionality.
set completion-ignore-case On
set show-all-if-ambiguous On
set show-all-if-unmodified On
set match-hidden-files Off
#set expand-tilde On
# Разрешает 8-и битный ввод
set meta-flag On
set input-meta On
set output-meta On
set convert-meta Off
#set bell-style none
set bell-style visible
set visible-stats On
# -----------------------------------
# Key Mapping: {{{1
#do history expansion when space entered
Space: magic-space
Tab: menu-complete
Del: delete-char-or-list
"\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
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
"\e[A": history-search-backward
"\e[B": history-search-forward
## for xterm
"\eOH": beginning-of-line
"\eOF": end-of-line
## for Konsole
"\e[H": beginning-of-line
"\e[F": end-of-line
$if Bash
#"\e[21~": "\C-uexit\C-m"
"\e[21~": "\C-uexit"
# Quote the current or previous word
"\C-x\"": "\eb\eb\"\ef\ef\""
$endif
# follow Sofeng's tips on how to make copy/paste work -myer
"\C-v": paste-from-clipboard
#"^[[2~": paste-from-clipboard
# EOF ~/.inputrc