by ramblenode · 10y ago · 0 comments
> c. The editing mode indicators can now be strings and are user-settable (new `emacs-mode-string', `vi-cmd-mode-string' and `vi-ins-mode-string' variables). Mode strings can contain invisible character sequences. Setting mode strings to null strings restores the defaults.
So now I can get the prompt to change color depending on the mode!
https://lists.gnu.org/archive/html/bug-bash/2015-12/msg00031...
Edit: it looks like you must use \1 and \2 instead of \[ and \].
EDIT I seem to have misread that description. So it is possible, that's brilliant news!