[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 11:07:18 -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 10:41 AM, Peng Yu wrote:
>> 'help complete' is the easiest way to see the short details; other than
>> that, look for complete under 'SHELL BUILTIN COMMANDS' in the man page.
>
> I see the following error. What is wrong with my bash?
Nothing is wrong with bash. Bash is telling you that you have not yet
installed a completion handler for python.
But it _is_ a sign that you have not installed the bash-completion
package, nor installed completions manually.
>
> $ complete -p python
> bash: complete: python: no completion specification
> $ type _python
> bash: type: _python: not found
What's your distro? On fedora, do 'yum install -y bash-completion'. Or
get it yourself: http://bash-completion.alioth.debian.org/files/
Then start a new shell, and compare the difference.
--
Eric Blake eblake@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
Re: How to autocomplete after 'which'?, Eric Blake, 2010/05/21
Re: How to autocomplete after 'which'?, Marc Herbert, 2010/05/21