Set up vim keybindings in bash/zsh/… via inputrc

Use vi shortcuts in terminal | Vim Tips Wiki | FANDOM powered by Wikia – add

set editing-mode vi
set keymap vi-command

to ~/.inputrc or /etc/inputrc and restart terminal.