-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinputrc
More file actions
executable file
·83 lines (74 loc) · 2.16 KB
/
inputrc
File metadata and controls
executable file
·83 lines (74 loc) · 2.16 KB
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
# set auto-completion method in bash
set completion-prefix-display-length 2
# do not bell on tab-completion
#set bell-style none
set meta-flag on
set input-meta on
set convert-meta off
set output-meta on
set completion-ignore-case on
# Completed names which are symbolic links to
# directories have a slash appended.
set mark-symlinked-directories on
$if mode=emacs
"\e[A": history-search-backward
"\e[B":history-search-forward
set show-all-if-ambiguous on
# for linux console and RH/Debian xterm
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# commented out keymappings for pgup/pgdown to reach begin/end of history
#"\e[5~": beginning-of-history
#"\e[6~": end-of-history
"\e[5~": history-search-backward
"\e[6~": history-search-forward
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word
"\e[1;5C": forward-word
"\e[1;5D": backward-word
# for rxvt
"\e[8~": end-of-line
"\eOc": forward-word
"\eOd": backward-word
# 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
"\C-p": history-search-backward
"\C-n": history-search-forward
$endif
# for vi mode
set editing-mode vi
$if mode=vi
"\e[A": history-search-backward
"\e[B": history-search-forward
"\C-p": history-search-backward
"\C-n": history-search-forward
"\C-k": kill-line
"\C-a": beginning-of-line
"\C-e": end-of-line
"\C-w": kill-word
"\C-l": clear-screen
"\C-d": delete-char
"\C-f": forward-char
"\C-b": backward-char
"\C-g": character-search
#"\M-\C-g": character-search-backward
# set keymap vi-insert
# "\C-i": vi-editing-mode
"\C-o": vi-editing-mode
set keymap vi-command
"\C-o": vi-editing-mode
#"\C-i": vi-insert-mode
set show-mode-in-prompt on
#set vi-ins-mode-string "\e[0;37m ins "
#set vi-cmd-mode-string "\e[1;34m [cmd]"
#set vi-ins-mode-string (ins)\1\e[5 q\2
#set vi-cmd-mode-string (cmd)\1\e[1 q\2
set vi-cmd-mode-string "\1\e[32m\2cmd\1\e[0m\2\1\e[1 q\2"
set vi-ins-mode-string "\1\e[37m\2ins\1\e[0m\2\1\e[5 q\2"
$endif