[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/
- How to autocomplete after 'which'?, Peng Yu, 2010/05/21
- Re: How to autocomplete after 'which'?,
Chet Ramey <=
- Re: How to autocomplete after 'which'?, Peng Yu, 2010/05/21
- Re: How to autocomplete after 'which'?, Eric Blake, 2010/05/21
- Re: How to autocomplete after 'which'?, Peng Yu, 2010/05/21
- Re: How to autocomplete after 'which'?, Eric Blake, 2010/05/21
- Re: How to autocomplete after 'which'?, Peng Yu, 2010/05/21
- Message not available
- Re: How to autocomplete after 'which'?, Peng Yu, 2010/05/22
Re: How to autocomplete after 'which'?, Eric Blake, 2010/05/21
Re: How to autocomplete after 'which'?, Marc Herbert, 2010/05/21