3

I am using

+~ $ bash --version 
GNU bash, version 4.4.0(1)-release (x86_64-unknown-linux-gnu)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

and added to my ~/.bashrc

 set -o vi

and in my /etc/inputrc

set show-mode-in-prompt on
set vi-cmd-mode-string "\1\e[1;31m\2:\1\e[0m\2"

however the color remains the same when I enter command mode. Could some one resolve this issue. only the leading character changes from + to :

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.