Interactive /bin/sh
Yamagi Burmeister
lists at yamagi.org
Mon Dec 16 08:49:35 UTC 2013
On Sun, 15 Dec 2013 11:58:40 +0100
rank1seeker at gmail.com wrote:
> history doesn't work the way I would like it to.
> With UP/DOWN arrow keys, I can navigate through history, SEQUENTIALLY.
> Like in [t]csh -> I would like to type first few letters and then with UP/DOWN arrow keys, navigate through history of CMDs, which starts with typed string.
After svn r244941 - which fixed a bug preventing ed-search-next-history
and ed-search-prev-history from working - this should be possible. To
bind them on "Page Up" and "Page Down":
- bind "\e[5~" ed-search-prev-history
- bind "\e[6~" ed-search-next-history
But as far as I know, even with those bindings /bin/sh is still missing
a way to save the command history to disk and load it back at startup.
--Yamagi
--
Homepage: www.yamagi.org
XMPP: yamagi at yamagi.org
GnuPG/GPG: 0xEFBCCBCB
More information about the freebsd-hackers
mailing list