Page MenuHomeFreeBSD

sh: improve emacs mode
ClosedPublic

Authored by bapt on Mar 30 2021, 9:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 1:30 PM
Unknown Object (File)
Mon, Apr 8, 11:56 AM
Unknown Object (File)
Sat, Apr 6, 5:16 PM
Unknown Object (File)
Mar 17 2024, 10:55 AM
Unknown Object (File)
Mar 17 2024, 7:11 AM
Unknown Object (File)
Feb 12 2024, 11:59 AM
Unknown Object (File)
Feb 8 2024, 11:26 PM
Unknown Object (File)
Jan 9 2024, 10:07 AM
Subscribers

Details

Summary

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

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
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.