Re: need some readline tricks
Yup, that's it. Thanx. Cool tricks
for down arrow to search history forward
On Wed, Dec 18, 2002 at 03:27:42PM +0100, Michael Naumann wrote:
> On Wednesday 18 December 2002 11:22, Chun Kit Edwin Lau wrote:
> > Hi everyone,
> > I am looking for a readline trick. Say for example, when I
> > type an "s" and a arrow key at the prompt, I should be able to scroll
> > last command that begins with an "s". Is it achievable in realine?
> Short answer: Yes.
> Your question is not complete though.
> If you mean readline in bash, you can add
> "\M-[A": history-search-backward
> to your .inputrc.
> A newly started bash should then handle CURSOR-UP the way you like.
> HTH, Michael
> To UNSUBSCRIBE, email to firstname.lastname@example.org
> with a subject of "unsubscribe". Trouble? Contact email@example.com
Edwin ERTW Lau
Post your free ad now! http://personals.yahoo.ca