public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-user] Re: bash-completion change?
  @ 2013-07-26 21:39 99%     ` Nikos Chantziaras
  0 siblings, 0 replies; 1+ results
From: Nikos Chantziaras @ 2013-07-26 21:39 UTC (permalink / raw
  To: gentoo-user

On 26/07/13 22:13, gottlieb@nyu.edu wrote:
> On Fri, Jul 26 2013, Nikos Chantziaras wrote:
>
>> On 24/07/13 15:06, Douglas J Hunley wrote:
>>> As of bash-completion-2.1-r1 it appears the eselect module is gone and
>>> the use of /etc/bash-completion.d is dead. Does this mean that all
>>> completions are enabled globally by default now? It used to be that you
>>> could turn each individual one on/off either globally or per user.
>>> Anyone know what the new 'one true way' is here?
>>
>> As others pointed out, you now need to:
>>
>>    source /usr/share/bash-completion/bash_completion
>>
>> in your ~/.bashrc.  However, you also need to clean out anything in
>> /etc/bash_completion.d/ and then:
>>
>>    ln -s /usr/share/bash-completion/gentoo /etc/bash_completion.d/
>>
>> Otherwise, completion for Gentoo stuff (like "emerge") will not be
>> available.
>
> Although I have a number of files and one subdirectory in
> /usr/share/bash-completion, I have neither
>     /usr/share/bash-completion/bash_completion
>     /usr/share/bash-completion/gentoo
>
> Presumably I have forgotten to turn something on; would you know what?

You probably forgot to re-emerge all packages that provide bash 
completion files:

   emerge -av1 \$(qfile -q -S -C /usr/share/bash-completion)

This is actually printed by app-shells/bash-completion when emerging it. 
If you don't do that, all the completion files are in the wrong 
directory. And yes, it will probably re-emerge *a lot* of packages, so 
you might want to do that while you're AFK.



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2013-07-24 12:06     [gentoo-user] bash-completion change? Douglas J Hunley
2013-07-26 17:12     ` [gentoo-user] " Nikos Chantziaras
2013-07-26 19:13       ` gottlieb
2013-07-26 21:39 99%     ` Nikos Chantziaras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox