5 ms·
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 thi
by mftb 3mo 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 https://en.wikipedia.org/wiki/GNU_Readline
- TacticalCoder 3mo agoYes 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.
- BoingBoomTschak 3mo agoWell, it is called `set -o emacs` in all shells of note (except POSIX; even pdksh).