From owner-freebsd-questions Sat Dec 29 10:52:36 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gadolinium.btinternet.com (gadolinium.btinternet.com [194.73.73.111]) by hub.freebsd.org (Postfix) with ESMTP id 7829E37B41B for ; Sat, 29 Dec 2001 10:52:33 -0800 (PST) Received: from host213-123-133-254.in-addr.btopenworld.com ([213.123.133.254] helo=there) by gadolinium.btinternet.com with smtp (Exim 3.22 #8) id 16KOag-0006zN-00; Sat, 29 Dec 2001 18:52:18 +0000 Content-Type: text/plain; charset="iso-8859-1" From: Dominic Marks To: "Darren" , Subject: Re: awesome find Date: Sat, 29 Dec 2001 18:52:38 +0000 X-Mailer: KMail [version 1.3.2] References: <0f9301c19079$a2241200$6401a8c0@crotchett.com> In-Reply-To: <0f9301c19079$a2241200$6401a8c0@crotchett.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: 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 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