summaryrefslogtreecommitdiff
path: root/.config/shell/inputrc
blob: cbe8e5e10ea7ccdf6f84450ada230dd2f2f41fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include /etc/inputrc
set editing-mode vi
$if mode=vi

set show-mode-in-promt on
set vi-ins-mode-string \1\e[6 q\2
set vi-cmd-mode-string \1\e[2 q\2

set keymap vi-command
# These are for vi-command mode
Control-l: clear-screen
Control-a: beginning-of-line

set keymap vi-insert
# These are vi-insert mode
Control-i: clear-screen
Control-a: beginning-of-line

$endif