Gentoo Archives: gentoo-user

From: gottlieb@×××.edu
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: bash-completion change?
Date: Fri, 26 Jul 2013 23:37:45
Message-Id: 87zjt8vqod.fsf@nyu.edu
In Reply to: [gentoo-user] Re: bash-completion change? by Nikos Chantziaras
1 On Fri, Jul 26 2013, Bruce Hill wrote:
2
3 > On Sat, Jul 27, 2013 at 12:39:13AM +0300, Nikos Chantziaras wrote:
4 >>
5 >> On 26/07/13 22:13, gottlieb@×××.edu wrote:
6 >>> On Fri, Jul 26 2013, Nikos Chantziaras wrote:
7 >>>
8 >>>> As others pointed out, you now need to:
9 >>>>
10 >>>> source /usr/share/bash-completion/bash_completion
11 >>>>
12 >>>> in your ~/.bashrc. However, you also need to clean out anything in
13 >>>> /etc/bash_completion.d/ and then:
14 >>>>
15 >>>> ln -s /usr/share/bash-completion/gentoo /etc/bash_completion.d/
16 >>>>
17 >>>> Otherwise, completion for Gentoo stuff (like "emerge") will not be
18 >>>> available.
19 >>>
20 >>> Although I have a number of files and one subdirectory in
21 >>> /usr/share/bash-completion, I have neither
22 >>> /usr/share/bash-completion/bash_completion
23 >>> /usr/share/bash-completion/gentoo
24 >>>
25 >>> Presumably I have forgotten to turn something on; would you know what?
26 >>
27 >> You probably forgot to re-emerge all packages that provide bash
28 >> completion files:
29 >>
30 >> emerge -av1 \$(qfile -q -S -C /usr/share/bash-completion)
31 >>
32 >> This is actually printed by app-shells/bash-completion when emerging
33 >> it. If you don't do that, all the completion files are in the wrong
34 >> directory. And yes, it will probably re-emerge *a lot* of packages, so
35 >> you might want to do that while you're AFK.
36 >
37 > little syntax help:
38 >
39 > emerge -av1 $(qfile -q -S -C /usr/share/bash-completion)
40
41 Thank you nikos and bruce.
42 allan