-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinputrc
32 lines (25 loc) · 1.13 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
# Configuration file for readline(3)
# From <https://www.topbug.net/blog/2017/07/31/inputrc-for-humans/>. Read commands and
# bindings from `/etc/inputrc`, which, I guess, would otherwise only be read if
# `~/.inputrc` didn't exist.
$include /etc/inputrc
# From <https://superuser.com/q/342455/flashing-window-in-gnu-screen>.
set bell-style none
# From <https://wiki.archlinux.org/title/Readline#Faster_completion>.
set show-all-if-ambiguous on
# From <https://www.leonerd.org.uk/hacks/hints/xterm-8bit.html>.
set input-meta on
set output-meta on
set convert-meta off
# From <https://www.topbug.net/blog/2017/07/31/inputrc-for-humans/>. Change Control+P and
# Control+N to only bring up history items that match the already typed characters.
"\C-P": history-search-backward
"\C-N": history-search-forward
# More stuff from <https://www.topbug.net/blog/2017/07/31/inputrc-for-humans/>. Except
# for `colored-completion-prefix`, which I find even nicer than
# `completion-prefix-display-length`.
set colored-stats on
set completion-ignore-case on
set colored-completion-prefix
set mark-symlinked-directories on
set enable-bracketed-paste on