Hacker News new | ask | show | jobs
by mftb 41 days ago
It's GNU Readline[0] or similar. It's all over the place, on Linux at least. Being GNU it defaults to emacs, but the vi support is also excellent. The first thing I type in any foreign bash is 'set -o vi'.

[0] - https://en.wikipedia.org/wiki/GNU_Readline

1 comments

Yes it's GNU readline, but note that the very Wikipedia link you gave explains that it's GNU readline that re-used those shortcuts from Emacs, not the other way round.

So it's not wrong to call these "Emacs" shortcuts.

Well, it is called `set -o emacs` in all shells of note (except POSIX; even pdksh).