bug-bash
[Top][All Lists]
Advanced

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

Re: How to autocomplete after 'which'?


From: Chet Ramey
Subject: Re: How to autocomplete after 'which'?
Date: Fri, 21 May 2010 11:39:45 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1

On 5/21/10 11:25 AM, Peng Yu wrote:
> When I type something after 'which', something means a command.
> However, bash doesn't do command completion for the argument after
> 'which'. Is there a way to configure bash behave depending on the
> context (in this case, do autocomplete after 'which')?

You can start with `complete -c which' and look further at the
bash-completion package, which uses the bash programmable completion
framework to provide custom completions for a large number of commands.

Chet
-- 
``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]