I know how to set the keyboard editing in bash to vi (set -o vi), and probably I could do it in bashrc. But I use bash in a variety accounts and contexts and want it to just default to vi over emacs no matter what.
Is there some way to force the default for the system (Ubuntu 23.04 in my case) to always be vi?
bash
, then I would use[ -n "$BASH_VERSION" ] && set -o vi
.