bug-bash
[Top][All Lists]
Advanced

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

Re: Specify completion without name


From: Chet Ramey
Subject: Re: Specify completion without name
Date: Wed, 04 Jan 2012 21:39:56 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0

On 1/4/12 8:54 PM, Peng Yu wrote:
> Hi,
> 
> I want to customize the command completion for completing executables,
> I want to search in a file (which includes all the executables in
> PATH) rather than the default PATH variable. But I don't see how to do
> so, as the following help indicates that it can only configure how to
> complete the arguments of a command. 

If you upgrade, bash-4.1 added the `-E' option to complete to complete on
empty lines.  There is no programmable completion mechanism to complete
on non-empty command names.

-- 
``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/



reply via email to

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