Page MenuHomeFreeBSD

sh: improve emacs mode
ClosedPublic

Authored by bapt on Mar 30 2021, 9:40 AM.
Tags
None
Referenced Files
F153802485: D29494.id.diff
Thu, Apr 23, 9:09 PM
Unknown Object (File)
Tue, Apr 21, 12:00 PM
Unknown Object (File)
Sun, Apr 19, 12:27 PM
Unknown Object (File)
Tue, Apr 14, 5:52 PM
Unknown Object (File)
Mon, Apr 6, 12:07 AM
Unknown Object (File)
Sun, Apr 5, 9:12 AM
Unknown Object (File)
Sun, Apr 5, 4:08 AM
Unknown Object (File)
Sat, Apr 4, 5:50 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38177
Build 35066: arc lint + arc unit

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.