From: Jannik ZANDER Date: Fri, 3 Aug 2018 17:16:23 +0000 (+0200) Subject: Add +/- to bash promth X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=24a9ec92efcf2d8548db9a32c283f9ee164c19ea;p=dotfiles.git Add +/- to bash promth --- 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