[plug] Anyone got bash tips for an old korn shell user?

Adrian Blockley a.blockley at poboxes.com
Sun Sep 8 20:01:57 WST 2002


What I do is put the following commands in ~/.inputrc

C-r: history-search-backward
C-f: history-search-forward 

which maps control-r to the backward search and control-f to go back if 
you've overshot.

Cheers

Adrian


On 2002.09.05 07:52 Colin Muller wrote:
> On Wed, Sep 04, 2002 at 09:10:08AM -0400, Steege, Phil E wrote:
> > Here is an excerpt from
> > www.gnu.org/manual/bash-2.05a/html_node/bashref_88.html#SEC95
> [snip]
> > desired history entry. To search backward in the history for a
> particular
> > string, type C-r. Typing C-s searches forward through the history.
> 
> I remember now. Trouble is, I've got Ctrl-s doing the stop scrolling
> thing, so it doesn't do this forward search in bash. Anyone know how
> to remap this to different keys in bash? Apart from changing over to
> vi mappings, that is: although I prefer vim for editing, I prefer the
> emacs mappings for the command line.
> 
> Colin
> 

-- 
--------------------------------------------------
Adrian  Blockley	 32 Darwinia Loop Canningvale WA, 6155
a.blockley at poboxes.com

Ph: 08 9256 1953
Mobile: 0405 609 990



More information about the plug mailing list