Last active
May 5, 2021 19:54
-
-
Save ethagnawl/86a0284c990196ae31b7 to your computer and use it in GitHub Desktop.
Display Vim mode in Bash prompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# requires >= Bash 4.3 | |
# note: the prompt will not be updated if you use a custom PS1 which contains a newline character | |
set editing-mode vi | |
set keymap vi-command | |
set show-mode-in-prompt on | |
# if it's configured correctly, your prompt will be prefixed with a `+` while in insert mode and a `:` when in command mode. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
May one of your next meals be delicious beyond your wildest expectations.