On Monday 01 March 2004 21:13, Oron Peled wrote:
> On Monday 01 March 2004 13:20, Kohn Emil Dan wrote:
>
> Now let's bash bash... Is there any interactive equivalent to tcsh 'ESC-p'
> and 'ESC-n' (history-search-backward, history-search-forward)?
> I don't look for bash "incremental search" (which is very good in itself),
> but the feature that enables me *after* writing a command prefix to search
> for this prefix in the history. E.g:
> prompt> viESC-p
> would pull the last 'vi' command.
>
You can bind the history-search-backward and history-search-forward commands
of GNU readline. I have these lines in my $HOME/.inputrc:
"\C-p": history-search-backward
"\C-n": history-search-forward
Thus, by pressing Ctrl+P and Ctrl+N I get a prefix based search forward and
backward.
Regards,
Shlomi Fish
> I think this feature is the only show-stopper to convert my login shell
> to bash (since programmed completion is already well supported).
>
> Thanks,
--
---------------------------------------------------------------------
Shlomi Fish [EMAIL PROTECTED]
Homepage: http://shlomif.il.eu.org/
Quidquid latine dictum sit, altum viditur.
[Whatever is said in Latin sounds profound.]
--------------------------------------------------------------------------
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]