Linux Journal tip

Eric "Shubes" plug at shubes.net
Thu Sep 14 12:33:34 MST 2006


der.hans wrote:
> Am 14. Sep, 2006 schwätzte Shawn Badger so:
> 
>> I don't know how many of you receive this weekly newsletter from Linux
>> Journal. They have a section called The Brain Trust which had a tip that
>> I never heard of for searching the history in a Bash shell. Here is the
>> excerpt from the newsletter:
>>
>> THE BRAIN TRUST: READERS SHARE THEIR EXPERTISE
>>
>>   This week we have a contribution from Jim C.:
>>
>>   "In the technical tips section of your newsletter on 9/5/06, you
>> referred to
>>   Bret's alias for searching bash history.  Why create an alias when
>> bash
>>   gives the user the 'reverse-i-search' and 'forward-i-search'
>> features?
> 
> These are emacs compatability features. Many other emacs commands work.
> 
> Well, until you fix bash by switching to vi compatability ;-).
> 
> I learned how to use vi on the command line, not in the editor.
> 
> ksh can use either mode as well. Anybody know if that's also true of zsh?
> 
> ciao,
> 
> der.hans
> 

I seem to remember from my HP-UX days that zsh had a history search facility 
similar to vi, with a /.

-- 
-Eric 'shubes'


More information about the PLUG-discuss mailing list