aboutsummaryrefslogtreecommitdiff
path: root/.inputrc
blob: afb20bf8a017fbb493fcc5c74d60c24a1bd52f09 (plain) (blame)
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
$include /etc/inputrc
set editing-mode vi
set bell-style none

# tab complete quick
set show-all-if-ambiguous on
set show-all-if-unmodified on
TAB: menu-complete
"\e[Z": menu-complete-backward
set menu-complete-display-prefix on

# all the colours
# Color files by types
set colored-stats On
# Append char to indicate type
set visible-stats On
# Mark symlinked directories
set mark-symlinked-directories On
# Color the common prefix
set colored-completion-prefix On
# Color the common prefix in menu-complete
set menu-complete-display-prefix On

# Clear screen
Control-l: clear-screen

$if mode=vi
# different cursors for vi modes (archwiki)
set show-mode-in-prompt on
set vi-ins-mode-string \1\e[6 q\2
set vi-cmd-mode-string \1\e[2 q\2

# (wiki: history substring search stuff)
set keymap vi-command
# these are for vi-command mode
"\e[A": history-search-backward
"\e[B": history-search-forward
j: history-search-forward
k: history-search-backward
Control-l: clear-screen
set keymap vi-insert
# these are for vi-insert mode
"\e[A": history-search-backward
"\e[B": history-search-forward
Control-l: clear-screen
$endif

# no beep
set bell-style none