From owner-freebsd-questions Sat Dec 29 11:27:34 2001 Delivered-To: freebsd-questions@freebsd.org Received: from sdf.lonestar.org (ip130.c214.blk2.bel.nwlink.com [207.202.214.130]) by hub.freebsd.org (Postfix) with ESMTP id C8D5D37B419 for ; Sat, 29 Dec 2001 11:27:25 -0800 (PST) Received: by sdf.lonestar.org (8.11.6/8.11.6) id fBTJR8A22671; Sat, 29 Dec 2001 19:27:08 GMT Date: Sat, 29 Dec 2001 19:27:08 +0000 (UTC) From: Rakesh Prajapati To: Dominic Marks Cc: Darren , Subject: Re: awesome find In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 29 Dec 2001, Dominic Marks wrote: > Date: Sat, 29 Dec 2001 18:52:38 +0000 > From: Dominic Marks > To: Darren , questions@FreeBSD.ORG > Subject: Re: awesome find > > 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 > Also in bash , just type in a few chars (one or more) and press TAB once and it will expand to files in that directory and pressing TAB once more and it will list all the commands/programs that start with those letters which are in $PATH. eg. ta gives me tail talk tangle tar tasklist_applet rprajapa@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message