I'm on Yosemite, using vi mode in bash (set -o vi
in .bash_profile) and I want to have the prompt indicate if I'm in edit or command mode. I looked around and found that this feature has been implemented in bash 4.3 (see https://unix.stackexchange.com/a/116385/46076) and can be turned on by setting the variable show-mode-in-prompt
to on
. I installed bash 4.3 using homebrew following these instructions. Now, when I execute bash --version
I see GNU bash, version 4.3.33(1)-release (x86_64-apple-darwin14.1.0)
and brew info readline
returns readline: stable 6.3.8 (bottled)
so it looks like I'm using the correct versions. However, when I execute set show-mode-in-prompt on
or add it to ~/.inputrc based on the readline manual, the prompt still doesn't change based on the vi mode. What am I doing wrong?
MacOS – How to show vi mode in bash
bashmacosvi
Related Question
- MacOS – Terminal not displaying colors for directory listings
- MacOS – How to move the cursor past the end of the line in Insert mode when using vi-style line editing on bash
- MacOS – Errors using brew to install python3
- macOS – How to Bind a Key Sequence to Shell Command
- Bash Command Runs Scripts in Version 3.2 Instead of 4.4
- Script menu: how to reference user-path utilities (PATH / environment is missing)
Best Answer
Looks like I didn't do anything wrong and an additional reboot is all that was needed.