From c09fef2c35ca61aa0a6c40e34a57f66f7c164e09 Mon Sep 17 00:00:00 2001 From: pvincent Date: Sat, 11 Nov 2023 12:51:48 +0400 Subject: [PATCH] better inputrc --- inputrc | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/inputrc b/inputrc index 73031ed..60433a8 100644 --- a/inputrc +++ b/inputrc @@ -1,11 +1,25 @@ -## completion case-insentivive +## completion case-insentivive and ambiguous 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 "\e[A":history-search-backward "\e[B":history-search-forward - # CTRL + Right, Left for word suppressing "\e[1;5C": forward-word "\e[1;5D": backward-word @@ -18,3 +32,6 @@ set completion-ignore-case on # CTRL + BACKSPACE for left word suppressing "\C-H": backward-kill-word +# SHIFT + DELETE for whole line suppressing + "\e[3;2~": kill-whole-line +