Date: Sat, 29 Dec 2001 09:01:02 -0600 From: "Darren" <backdoc@crotchett.com> To: <questions@freebsd.org> Subject: awesome find Message-ID: <0f9301c19079$a2241200$6401a8c0@crotchett.com>
next in thread | raw e-mail | index | archive | help
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. Darren 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?0f9301c19079$a2241200$6401a8c0>