|
|
|
|
|
by gkfasdfasdf
703 days ago
|
|
Bash uses readline, so setting it in .inputrc would be sufficient for bash, but it will also get applied to other apps using readline like gdb. Setting an .inputrc also allows you to configure other niceties like colored-completion-prefix and colored-stats [0]. There's certainly no harm in doing both 'set -o vi' in shell rc and 'set editing-mode vi' in .inputrc [0]: https://wiki.archlinux.org/title/Readline#Colorized_completi... |
|
Your Postgres psql client will switch to vi mode, which might not be what you intended.
And if a day comes that dash gets linked to libedit on Debian/Ubuntu, only the POSIX standard command will have the desired effect.