Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Dec 2013 09:22:52 +0100
From:      Yamagi Burmeister <lists@yamagi.org>
To:        rank1seeker@gmail.com
Cc:        hackers@freebsd.org
Subject:   Re: Interactive /bin/sh
Message-ID:  <20131216092252.784cd34edde5f4299f9dac4b@yamagi.org>
In-Reply-To: <20131215.105840.948.1@DOMY-PC>
References:  <20131215.105840.948.1@DOMY-PC>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 15 Dec 2013 11:58:40 +0100
rank1seeker@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@yamagi.org
GnuPG/GPG: 0xEFBCCBCB



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131216092252.784cd34edde5f4299f9dac4b>