29 lines
554 B
Plaintext
29 lines
554 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-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
|