From a866c81b4d4e6b810a6da459b548e0f9c5079b44 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Wed, 9 Dec 2020 23:42:22 +0100 Subject: [PATCH] Add readline config --- .inputrc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .inputrc diff --git a/.inputrc b/.inputrc new file mode 100644 index 0000000..4b4cda7 --- /dev/null +++ b/.inputrc @@ -0,0 +1,25 @@ +$include /etc/inputrc + +set editing-mode vi +set keymap vi +set show-mode-in-prompt on +set vi-ins-mode-string "\1\e[1;32m\2i:\1\e[0m\2" +set vi-cmd-mode-string "\1\e[1;31m\2c?\1\e[0m\2" +set show-all-if-ambiguous on +set colored-completion-prefix on +set colored-stats on +set completion-display-width 0 + +$if mode=vi + set keyseq-timeout 200 + set keymap vi-command + "\e[A": history-search-backward + "\e[B": history-search-forward + j: history-search-forward + k: history-search-backward + set keymap vi-insert + "jj": vi-movement-mode + "\e[A": history-search-backward + "\e[B": history-search-forward + "\C-l": clear-screen +$endif