Skip to content

Instantly share code, notes, and snippets.

@ethagnawl
Last active May 5, 2021 19:54
Show Gist options
  • Save ethagnawl/86a0284c990196ae31b7 to your computer and use it in GitHub Desktop.
Save ethagnawl/86a0284c990196ae31b7 to your computer and use it in GitHub Desktop.
Display Vim mode in Bash prompt
# 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.
@curtiszimmerman
Copy link

May one of your next meals be delicious beyond your wildest expectations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment