Date: Sat, 29 Dec 2001 18:52:38 +0000 From: Dominic Marks <dominic_marks@btinternet.com> To: "Darren" <backdoc@crotchett.com>, <questions@freebsd.org> Subject: Re: awesome find Message-ID: <E16KOag-0006zN-00@gadolinium.btinternet.com> In-Reply-To: <0f9301c19079$a2241200$6401a8c0@crotchett.com> References: <0f9301c19079$a2241200$6401a8c0@crotchett.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 29 December 2001 3:01 pm, Darren wrote: > I'm using bash 2.05 on FreeBSD 4.4-RELEASE. I have discovered a > feature of bash that I didn't know existed. Since there may be > others like me who did not know that this feature existed, I > thought that I'd point it out. > > Anyway, forever now, I've taken advantage of using the up arrow to > access the most recently used commands. By accident, I discovered > that if you type a character or two of what you intend to type > _AND_THEN_ press the up arrow key, bash will narrow down your > options to only the commands in your history that begin with the > same characters. Kinda like a grep/regex thing. > > In other words, if you use vi, try typing vi at the command line > and then use the up arrow. You'll see only the commands in history > that start with vi. > > Awesome. FYI: This is also the case with most good interactive shells, including the stock tcsh included with FreeBSD. > Darren > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Dominic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E16KOag-0006zN-00>