1
0
Fork 0

add `readline` config

urosm 2023-08-12 01:29:27 +02:00
parent b666d4930b
commit 0ee4158545
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
$include /etc/inputrc
# vi mode
set editing-mode vi
set show-mode-in-prompt on
set vi-ins-mode-string "\1\e[01;31m\2+\1\e[0m\2"
set vi-cmd-mode-string "\1\e[01m\2:\1\e[0m\2"
set keyseq-timeout 50
# history search
$if mode=vi
set keymap vi-command
"j": history-search-forward
"k": history-search-backward
set keymap vi-insert
"\e[A": history-search-backward
"\e[B": history-search-forward
$endif
# faster completion
"\t":menu-complete
"\e[Z":menu-complete-backward
set show-all-if-ambiguous on
# color
set colored-stats on
set visible-stats on