Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: bash-completion change?
Date: Fri, 26 Jul 2013 21:39:55
Message-Id: ksuqa2$cv7$1@ger.gmane.org
In Reply to: Re: [gentoo-user] Re: bash-completion change? by gottlieb@nyu.edu
1 On 26/07/13 22:13, gottlieb@×××.edu wrote:
2 > On Fri, Jul 26 2013, Nikos Chantziaras wrote:
3 >
4 >> On 24/07/13 15:06, Douglas J Hunley wrote:
5 >>> As of bash-completion-2.1-r1 it appears the eselect module is gone and
6 >>> the use of /etc/bash-completion.d is dead. Does this mean that all
7 >>> completions are enabled globally by default now? It used to be that you
8 >>> could turn each individual one on/off either globally or per user.
9 >>> Anyone know what the new 'one true way' is here?
10 >>
11 >> As others pointed out, you now need to:
12 >>
13 >> source /usr/share/bash-completion/bash_completion
14 >>
15 >> in your ~/.bashrc. However, you also need to clean out anything in
16 >> /etc/bash_completion.d/ and then:
17 >>
18 >> ln -s /usr/share/bash-completion/gentoo /etc/bash_completion.d/
19 >>
20 >> Otherwise, completion for Gentoo stuff (like "emerge") will not be
21 >> available.
22 >
23 > Although I have a number of files and one subdirectory in
24 > /usr/share/bash-completion, I have neither
25 > /usr/share/bash-completion/bash_completion
26 > /usr/share/bash-completion/gentoo
27 >
28 > Presumably I have forgotten to turn something on; would you know what?
29
30 You probably forgot to re-emerge all packages that provide bash
31 completion files:
32
33 emerge -av1 \$(qfile -q -S -C /usr/share/bash-completion)
34
35 This is actually printed by app-shells/bash-completion when emerging it.
36 If you don't do that, all the completion files are in the wrong
37 directory. And yes, it will probably re-emerge *a lot* of packages, so
38 you might want to do that while you're AFK.

Replies

Subject Author
Re: [gentoo-user] Re: bash-completion change? Bruce Hill <daddy@×××××××××××××××××××××.com>
Re: [gentoo-user] Re: bash-completion change? gottlieb@×××.edu