bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Circulate matches in command completion?


From: Chet Ramey
Subject: Re: Circulate matches in command completion?
Date: Thu, 11 Feb 2010 10:58:19 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1

On 2/11/10 10:54 AM, Peng Yu wrote:
> Suppose I file 'a1.txt' and 'a2.txt' in my current directory. When I
> type 'cat a' then TAB, it will show me 'a1.txt' and 'a2.txt'. If I
> type TAB repeatedly, it will always show me the same thing.
> 
> However, a better response might be
> 1. complete the command to 'cat a1.txt' at the 2nd TAB,
> 2. complete the command to 'cat a2.txt' at the 3rd TAB,
> 3. return to the original 'cat a' at the 4th TAB,
> 4. complete the command to 'cat a1.txt' again at the 5th TAB.
> 
> I'm wondering if there is a way to configure bash this way.

bind 'TAB:menu-complete'

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]