-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.inputrc
46 lines (37 loc) · 1.28 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
#
# inputrc
#
set editing-mode vi
$include /etc/inputrc
# you will no longer have to hit the <Tab> key twice to produce a list of all
# possible completions
set show-all-if-ambiguous on
# out put list of completion for file names with classification, like `ls -F`
set visible-stats on
# also color theme
set colored-stats on
set bell-style none
set completion-ignore-case on
# set completion-prefix-display-length 2
set show-all-if-ambiguous on
set show-all-if-unmodified on
# stupid key sequence of esc and other keys is mapped to meta for emacs and you
# can't really unmap it.
set keyseq-timeout 0
set show-mode-in-prompt on
# read manual for Readline
# form manual: "Use the \1 and \2 escapes to begin and end sequences of
# non-printing characters, which can be used to embed a terminal control
# sequence into the mode string."
# `\e` or `\033` (the second is more portable) is a escape character and has to
# be treated as non-printing string otherwise it bugs the input of the terminal
set vi-ins-mode-string "\1\033[0;34m\2[I]\1\033[0m\2"
set vi-cmd-mode-string "\1\033[0;29m\2[N]\1\033[0m\2"
# set colored-completion-prefix on
# ?
set show-all-if-unmodified on
set keymap vi-insert
"\C-x": shell-expand-line
"\e.": yank-last-arg
Control-j: menu-complete
Control-k: menu-complete-backward