From 24a9ec92efcf2d8548db9a32c283f9ee164c19ea Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Fri, 3 Aug 2018 19:16:23 +0200 Subject: [PATCH] Add +/- to bash promth --- .inputrc | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/.inputrc b/.inputrc index ed54457..e1777b2 100644 --- a/.inputrc +++ b/.inputrc @@ -16,23 +16,20 @@ set skip-completed-text on set editing-mode vi set keymap vi -$if mode=vi - # Prompt will be prefixed with a `+` while in insert mode and a `:` when in command mode - set show-mode-in-prompt on - set keymap vi-command - "gg": beginning-of-history - "G": end-of-history - "k": history-search-backward - "j": history-search-forward - - set keymap vi-insert - "\e": - "jk": vi-movement-mode - "\C-l": clear-screen - "\C-w": backward-kill-word - "\C-k": history-search-backward - "\C-j": history-search-forward -$endif +set show-mode-in-prompt on +set vi-ins-mode-string + +set vi-cmd-mode-string - +set keymap vi-command +"gg": beginning-of-history +"G": end-of-history +"k": history-search-backward +"j": history-search-forward + +set keymap vi-insert +"\e": +"\C-f": vi-movement-mode +"jk": vi-movement-mode +"\C-w": backward-kill-word $if Bash # do history expansion when space entered -- 2.43.0