-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.inputrc
73 lines (50 loc) · 1.37 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
# blink mathing parens
set blink-matching-paren on
# completion options
set completion-ignore-case on
set page-completions on
set skip-completed-text on
set completion-map-case on
set show-all-if-ambiguous on
set show-all-if-unmodified on
set visible-stats on
set expand-tilde on
# unlimited history
set history-size -1
set mark-directories on
# mark modified history entries with *
set mark-modified-lines off
# match hidden files only after .
set match-hidden-files on
# complete common prefix
set menu-complete-display-prefix on
# page completions with more-like pager
set page-completions on
set print-completions-horizontally on
set mark-symlinked-directories on
# dont echo ^C etc (^4.1)
set echo-control-characters off
# be vimish
set editing-mode vi
set keyseq-timeout 0
set show-mode-in-prompt on
set vi-ins-mode-string \1\e[48;5;238m\2 > \1\e[0m\2
set vi-cmd-mode-string \1\e[48;5;238m\2 ≡ \1\e[0m\2
set emacs-mode-string \1\e[48;5;238m\2 @ \1\e[0m\2
set show-mode-in-prompt on
# insert as default
set keymap vi-insert
# search history
"\C-n": history-search-forward
"\C-p": history-search-backward
# cycle thru completions
"\C-k": menu-complete
"\C-j": menu-complete-backward
# bring back emacs' useful bindings
"\C-a": beginning-of-line
"\C-e": end-of-line
"\C-f": forward-char
"\C-b": backward-char
"\M-f": forward-word
"\M-b": backward-word
"\C-l": clear-screen