1
0
Fork 0
dot/.config/readline/inputrc

31 lines
655 B
Plaintext

$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-substring-search-forward
"k": history-substring-search-backward
set keymap vi-insert
"\e[A": history-substring-search-backward
"\e[B": history-substring-search-forward
$endif
# faster completion
"\t":menu-complete
"\e[Z":menu-complete-backward
set completion-ignore-case on
set show-all-if-ambiguous on
set completion-display-width 0
# color
set colored-stats on
set visible-stats on