Add readline config

master
Hektor Misplon 2020-12-09 23:42:22 +01:00
parent 041e4545ea
commit a866c81b4d
1 changed files with 25 additions and 0 deletions

25
.inputrc Normal file
View File

@ -0,0 +1,25 @@
$include /etc/inputrc
set editing-mode vi
set keymap vi
set show-mode-in-prompt on
set vi-ins-mode-string "\1\e[1;32m\2i:\1\e[0m\2"
set vi-cmd-mode-string "\1\e[1;31m\2c?\1\e[0m\2"
set show-all-if-ambiguous on
set colored-completion-prefix on
set colored-stats on
set completion-display-width 0
$if mode=vi
set keyseq-timeout 200
set keymap vi-command
"\e[A": history-search-backward
"\e[B": history-search-forward
j: history-search-forward
k: history-search-backward
set keymap vi-insert
"jj": vi-movement-mode
"\e[A": history-search-backward
"\e[B": history-search-forward
"\C-l": clear-screen
$endif