On 26/07/13 22:13, gottl...@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.


Reply via email to