bug-bash
[Top][All Lists]
Advanced

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

Re: ZSH like command line completion


From: Chet Ramey
Subject: Re: ZSH like command line completion
Date: Fri, 09 Jan 2009 12:13:48 -0500
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

Mithu2 wrote:
> Hi,
> 
> I know in Bash the file completion can be set to provide a menu-list of
> possible files.  This seems to be the default behaviour.  On the other hand,
> I could add:
> 
>   bind 'TAB:menu-complete'
> 
> to my .bashrc which allows cycling through the list of completions.  But
> these two options are mutually exclusive.
> 
> Is is possible to activate BOTH on the same key (tab)?  This is the default
> behaviour in ZSH where the first tab will menu-list all the completions and
> then the next tab starts cycling through the possible completions.  (I
> already have 
> 
>   bind "set show-all-if-ambiguous on"
> 
> to make the menu appear on the first tab)

The menu-complete implementation in bash-4.0 will honor the setting of
show-all-if-ambiguous.  If that is enabled, menu-complete will print the
possible completions on the first tab as well as begin to cycle through
the completion set.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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