Ctrl +a and Ctrl +e for beginning and end of line are from Emacs.
GNU Readline is what provides them in the bash. There’s a bunch of shortcuts worth learning in there!
Most distributions I’ve tried use Emacs as the default shell binding style, some of the bindings are even available in things like appliance cli’s like Cisco IOS and clones.
Bash supports vi mode too, you just have to switch to it.
set -o vi
ZSH uses zle (ZSH Line Editor) instead of Readline, but I assume the Emacs style bindings have been copied over to zle for muscle memory portability. You can switch the keymap in zle,
Ctrl +a and Ctrl +e for beginning and end of line are from Emacs.
GNU Readline is what provides them in the bash. There’s a bunch of shortcuts worth learning in there!
Most distributions I’ve tried use Emacs as the default shell binding style, some of the bindings are even available in things like appliance cli’s like Cisco IOS and clones.
Bash supports vi mode too, you just have to switch to it.
set -o vi
ZSH uses zle (ZSH Line Editor) instead of Readline, but I assume the Emacs style bindings have been copied over to zle for muscle memory portability. You can switch the keymap in zle,
bindkey -v
or set your own!
I am aware, explained more in my other comment