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: Peng Yu
Subject: Re: How to autocomplete after 'which'?
Date: Fri, 21 May 2010 15:39:33 -0500

On Fri, May 21, 2010 at 12:07 PM, Eric Blake <eblake@redhat.com> wrote:
> 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.

I installed bash-completion. Then I start a new shell. But I still see
the above error messages.

$ sudo apt-get install bash-completion
[sudo] password for administrator:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  bash-completion
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 124kB of archives.
After this operation, 479kB of additional disk space will be used.
Get:1 http://escalade.imgen.bcm.tmc.edu hardy/main bash-completion
20060301-3ubuntu3 [124kB]
Fetched 124kB in 0s (4413kB/s)
Selecting previously deselected package bash-completion.
(Reading database ... 66941 files and directories currently installed.)
Unpacking bash-completion (from
.../bash-completion_20060301-3ubuntu3_all.deb) ...
Setting up bash-completion (20060301-3ubuntu3) ...


-- 
Regards,
Peng



reply via email to

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