From 5d347a55622feb87c03e76a8acfe8d72f1eb0291 Mon Sep 17 00:00:00 2001 From: Alexander Karle Date: Thu, 22 Nov 2018 19:10:15 -0500 Subject: [PATCH] [bash] add +/: indicator to prompt based on vi mode --- inputrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inputrc b/inputrc index 447845a..5149d54 100644 --- a/inputrc +++ b/inputrc @@ -1,5 +1,8 @@ # vi keys! Needs to be up top set editing-mode vi +set show-mode-in-prompt on +set vi-cmd-mode-string "\1\e[1;93m\2:\1\e[0m\2 " +set vi-ins-mode-string "\1\e[1;92m\2+\1\e[0m\2 " # tab completion Tab: menu-complete -- libgit2 0.28.4