Page MenuHomeFreeBSD

sh: improve emacs mode

Authored by bapt on Mar 30 2021, 9:40 AM.
Referenced Files
Unknown Object (File)
Sun, Dec 3, 3:13 AM
Unknown Object (File)
Mon, Nov 13, 8:08 AM
Unknown Object (File)
Oct 19 2023, 8:24 PM
Unknown Object (File)
Sep 6 2023, 5:56 AM
Unknown Object (File)
Aug 28 2023, 3:07 AM
Unknown Object (File)
Jul 24 2023, 6:54 AM
Unknown Object (File)
May 19 2023, 7:54 PM
Unknown Object (File)
Mar 25 2023, 2:03 PM



In emacs mode, force ^R to backware search the history
This behaviour is the default in emacs mode for most of the user shell

Diff Detail

rG FreeBSD src repository
Lint Not Applicable
Tests Not Applicable

Event Timeline

bapt requested review of this revision.Mar 30 2021, 9:40 AM

I added a similar diff in CheriBSD a while ago but for some reason I added it unconditionally there. Seems like bash also maps in in vi mode, but zsh doesn't.

This revision is now accepted and ready to land.Mar 30 2021, 10:58 AM

Note that this can still be overridden via $EDITRC, ~/.editrc or a bind command after set -o emacs.

This revision was automatically updated to reflect the committed changes.