better inputrc

This commit is contained in:
pvincent
2023-11-11 12:51:48 +04:00
parent c01d5648e0
commit c09fef2c35
+19 -2
View File
@@ -1,11 +1,25 @@
## completion case-insentivive ## completion case-insentivive and ambiguous
set completion-ignore-case on set completion-ignore-case on
set show-all-if-ambiguous on
set colored-completion-prefix on
set colored-stats on
set mark-symlinked-directories on
set visible-stats on
set skip-completed-text on
# display characters with the eighth bit set directly
set input-meta on
set output-meta on
set convert-meta off
# if there are 20 or more possible completions for a word,
# ask whether or not the user wants to see all of them
set completion-query-items 20
## ARROW up, down for history search ## ARROW up, down for history search
"\e[A":history-search-backward "\e[A":history-search-backward
"\e[B":history-search-forward "\e[B":history-search-forward
# CTRL + Right, Left for word suppressing # CTRL + Right, Left for word suppressing
"\e[1;5C": forward-word "\e[1;5C": forward-word
"\e[1;5D": backward-word "\e[1;5D": backward-word
@@ -18,3 +32,6 @@ set completion-ignore-case on
# CTRL + BACKSPACE for left word suppressing # CTRL + BACKSPACE for left word suppressing
"\C-H": backward-kill-word "\C-H": backward-kill-word
# SHIFT + DELETE for whole line suppressing
"\e[3;2~": kill-whole-line