[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to autocomplete after 'which'?
From: |
Eric Blake |
Subject: |
Re: How to autocomplete after 'which'? |
Date: |
Fri, 21 May 2010 09:46:57 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b1 Mnenhy/0.8.2 Thunderbird/3.0.4 |
On 05/21/2010 09: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')?
Consider installing the bash-completion package, which installs a number
of autocompletion helpers that do the right thing, including one for
'which' that does command completion.
Here's how bash-completion does it:
complete -c command type which
--
Eric Blake eblake@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- How to autocomplete after 'which'?, Peng Yu, 2010/05/21
- Re: How to autocomplete after 'which'?, Chet Ramey, 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
- 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 <=
Re: How to autocomplete after 'which'?, Marc Herbert, 2010/05/21