From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 16 08:49:35 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 880757AF for ; Mon, 16 Dec 2013 08:49:35 +0000 (UTC) Received: from mail1.yamagi.org (yugo.yamagi.org [84.201.39.245]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4D4B4170D for ; Mon, 16 Dec 2013 08:49:34 +0000 (UTC) Received: from [212.48.125.109] (helo=lennart.pwag-local.de) by mail1.yamagi.org with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.82 (FreeBSD)) (envelope-from ) id 1VsTS1-000ITq-Bc; Mon, 16 Dec 2013 09:22:54 +0100 Date: Mon, 16 Dec 2013 09:22:52 +0100 From: Yamagi Burmeister To: rank1seeker@gmail.com 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> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.19; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Dec 2013 08:49:35 -0000 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