You are not logged in.
Hello,
When using vi editing mode, bash has a 'show-mode-in-prompt' option that will enable displaying the current editing mode. However, this is hardcoded to only display '+' and ':' for the modes, and only at the very beginning of the prompt. I've published patched versions of bash 4.3 / readline 6.3 to github that support user configurable mode strings as well as a '\m' escape to specify where in the prompt you want the mode string to occur.
This is what it looks like in action:
See the github readme for details and instructions. Feedback welcome, enjoy!
Last edited by calid (2015-10-28 11:38:38)
Offline