[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] bash key mapping in reverse-i-search mode
From: |
Chet Ramey |
Subject: |
Re: [Help-bash] bash key mapping in reverse-i-search mode |
Date: |
Tue, 21 Aug 2012 09:42:11 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:14.0) Gecko/20120713 Thunderbird/14.0 |
On 8/21/12 12:20 AM, Sinbad wrote:
> i just tried with bash version 4.2, GNU bash, version 4.2.0(1)-release
> (x86_64-unknown-linux-gnu)
> i still doesn't work, i tested the following. ,b is mapped for reverse search.
>
> $ git one
> $ git two
> $,b
> $(reverse-i-search)`':git
> $(reverse-i-search)`':git two
> $(reverse-i-search)`':git two # {press ,b} here, it wont move to git one,
> it just get's struck there
>
> apparently it is working for you, am i doing something wrong ?
Here's what I did. Using emacs mode on bash-4.2.37, I ran
bind '",b":reverse-search-history'
After that, successively entering `,b' takes me back through the history
until there are no more instances of the search string.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/