-
Notifications
You must be signed in to change notification settings - Fork 0
/
.inputrc
55 lines (41 loc) · 1.34 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
$include /etc/inputrc
set editing-mode emacs
#set editing-mode vi
$if mode=vi
set show-mode-in-prompt on
$if term=linux
set vi-ins-mode-string \1\e[?0c\2
set vi-cmd-mode-string \1\e[?8c\2
$else
set vi-ins-mode-string \1\e[6 q\2
set vi-cmd-mode-string \1\e[2 q\2
$endif
set keymap vi-command
Control-a: beginning-of-line
Control-e: end-of-line
set keymap vi-insert
Control-a: beginning-of-line
Control-e: end-of-line
$endif
# This is supposed to bind ctrl-left and ctrl-right. Some terminals do this
# automatically (xterm, xfce4-terminal, alacritty) while others don't (urxvt).
# This doesn't appear to work for urxvt, which wants its settings defined in
# .Xresources anyway.
#"\e[1;5D": backward-word
#"\e[1;5C": forward-word
#set bell-style visible
# colored tab completion
set colored-stats on
set visible-stats on
set mark-symlinked-directories on
set colored-completion-prefix on
# https://codeinthehole.com/tips/the-most-important-command-line-tip-incremental-history-searching-with-inputrc/
# TODO: maybe change these to ctrl+up / ctrl+down instead?
#"\e[A": history-search-backward
#"\e[B": history-search-forward
# These don't seem necessary?
#"\e[C": forward-char
#"\e[D": backward-char
#set show-all-if-ambiguous on
#set show-all-if-unmodified on
set skip-completed-text on