]> git.zndr.dk Git - dotfiles.git/commitdiff
Add +/- to bash promth
authorJannik ZANDER <jannikz@gmail.com>
Fri, 3 Aug 2018 17:16:23 +0000 (19:16 +0200)
committerJannik ZANDER <jannikz@gmail.com>
Fri, 3 Aug 2018 17:16:23 +0000 (19:16 +0200)
.inputrc

index ed54457b77430e2d0e947e96c720530df227cda8..e1777b216e17427614a66ccb599198d721aefd36 100644 (file)
--- 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