Re: need some readline tricks
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
Reply to: