blob: d7897138ca91f1bc9cb8ae134d33ec319dc89881 (
plain) (
blame)
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
|
$include /etc/inputrc
set bell-style visible
set bind-tty-special-chars off
set blink-matching-paren on
set colored-completion-prefix on
set colored-stats on
set completion-ignore-case on
set convert-meta off
set echo-control-characters off
set editing-mode vi
set input-meta on
set mark-symlinked-directories on
set match-hidden-files off
set menu-complete-display-prefix on
set meta-flag on
set output-meta on
set page-completions on
set show-all-if-ambiguous on
set show-all-if-unmodified on
set show-mode-in-prompt on
set visible-stats on
$if mode=emacs
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5C": forward-word
"\e[5D": backward-word
"\e[3~": delete-char
"\e[5~": history-search-backward
"\e[6~": history-search-forward
"\t": menu-complete
$endif
$if mode=vi
set keymap vi-command
"^": beginning-of-line
"$": end-of-line
"w": forward-word
"b": backward-word
"x": delete-char
"k": history-search-backward
"j": history-search-forward
"?": reverse-search-history
"/": forward-search-history
"gg": beginning-of-history
"G": end-of-history
set keymap vi-insert
"\C-l": clear-screen
"\C-w": backward-kill-word
"\C-a": beginning-of-line
"\C-e": end-of-line
"\C-p": history-search-backward
"\C-n": history-search-forward
"\t": menu-complete
$endif
$if term=linux
set vi-ins-mode-string \1\e[?0c\2
set vi-cmd-mode-string \1\e[?8c\2
$else
set vi-ins-mode-string \1\e[6 q\2
set vi-cmd-mode-string \1\e[2 q\2
$endif
|