-
Notifications
You must be signed in to change notification settings - Fork 0
/
inputrc
47 lines (35 loc) · 1.05 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
$include /etc/inputrc
set convert-meta off
set input-meta on
set output-meta on
set editing-mode emacs
set horizontal-scroll-mode off
set mark-directories on
set mark-symlinked-directories on
set expand-tilde off
set menu-complete-display-prefix on
set skip-completed-text on
set match-hidden-files off
set show-all-if-unmodified on
set history-preserve-point on
Control-p: history-search-backward
Control-n: history-search-forward
"\e\e[A": menu-complete-backward
"\e\e[B": menu-complete
Control-d: delete-char-or-list
Control-w: kill-word
Control-l: redraw-current-line
"\C-xf": dump-functions
"\C-xm": dump-macros
"\C-xv": dump-variables
$if Bash
Space: magic-space
# I’m using a prompt on the right side (showing time). Issue is that it
# does not disappear when accepting a line. This is not a major problem but
# it makes copying and pasting a bit tricky. Add redrawing a line prior
# to accepting it so the right prompt is cleared.
"\e\C-j": accept-line
"\C-j": "\C-l\e\C-j"
"\C-m": "\C-l\e\C-j"
"\C-z": "bg"
$endif