-
Notifications
You must be signed in to change notification settings - Fork 0
/
.inputrc
107 lines (80 loc) · 2.12 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
$include /etc/inputrc
# do not bell on tab-completion
set bell-style none
#set bell-style audible
set show-all-if-ambiguous on
set show-all-if-unmodified on
# Case-insensitive autocompletion
set completion-ignore-case On
set completion-display-width 0
# symlinks to directories have slash appended
set mark-symlinked-directories on
set meta-flag on
set input-meta on
set convert-meta off
set output-meta on
set editing-mode emacs
#set editing-mode vi
#set enable-keypad on
$if mode=vi
set show-mode-in-prompt on
set vi-ins-mode-string \1\e[6 q\2
set vi-cmd-mode-string \1\e[2 q\2
set show-all-if-ambiguous on
set mark-symlinked-directories on
set colored-stats On
set colored-completion-prefix On
set match-hidden-files off
set page-completions off
set completion-query-items 200
set visible-stats on
set skip-completed-text on
set input-meta on
set output-meta on
set convert-meta off
set keymap vi-command
Control-l: clear-screen
Control-a: beginning-of-line
set keymap vi-insert
Control-l: clear-screen
Control-a: beginning-of-line
$endif
$if mode=emacs
# 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
# mappings for "page up" and "page down" to step to the beginning/end
# of the history
# "\e[5~": beginning-of-history
# "\e[6~": end-of-history
# alternate mappings for "page up" and "page down" to search the history
"\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
# Alt-Left, Alt-Right: gnome-terminal
"\e[1;3C]": forward-word
"\e[1;3D]": backward-word
# Alt-Left, Alt-Right: TMUX
"\e\e[C": forward-word
"\e\e[D": backward-word
# for rxvt
$if term=rxvt
"\e[7~": beginning-of-line
"\e[8~": end-of-line
"\eOc": forward-word
"\eOd": backward-word
$endif
# 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
$endif