* [gentoo-user] bash-completion change? @ 2013-07-24 12:06 Douglas J Hunley 2013-07-24 14:05 ` Stefano Crocco 2013-07-26 17:12 ` [gentoo-user] " Nikos Chantziaras 0 siblings, 2 replies; 16+ messages in thread From: Douglas J Hunley @ 2013-07-24 12:06 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 484 bytes --] 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? -- Douglas J Hunley (doug.hunley@gmail.com) Twitter: @hunleyd Web: douglasjhunley.com G+: http://goo.gl/sajR3 [-- Attachment #2: Type: text/html, Size: 746 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] bash-completion change? 2013-07-24 12:06 [gentoo-user] bash-completion change? Douglas J Hunley @ 2013-07-24 14:05 ` Stefano Crocco 2013-07-25 12:14 ` Douglas J Hunley 2013-07-26 17:12 ` [gentoo-user] " Nikos Chantziaras 1 sibling, 1 reply; 16+ messages in thread From: Stefano Crocco @ 2013-07-24 14:05 UTC (permalink / raw To: gentoo-user On Wednesday 24 July 2013 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? > > -- > Douglas J Hunley (doug.hunley@gmail.com) > Twitter: @hunleyd Web: > douglasjhunley.com > G+: http://goo.gl/sajR3 There are a few bugs regarding this issue, for example: 472938, 476992 and 477214. If I understand things correctly, all installed modules are enabled, but they're loaded "on-demand" (I guess this means the first time they're used, but I'm not sure). The way suggested in one of these bugs to have a working autocompletion is to source /usr/share/bash-completion/bash_completion from you .bashrc file. Stefano ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] bash-completion change? 2013-07-24 14:05 ` Stefano Crocco @ 2013-07-25 12:14 ` Douglas J Hunley 2013-07-25 15:16 ` Stefano Crocco 0 siblings, 1 reply; 16+ messages in thread From: Douglas J Hunley @ 2013-07-25 12:14 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 941 bytes --] On Wed, Jul 24, 2013 at 10:05 AM, Stefano Crocco <stefano.crocco@alice.it>wrote: > > There are a few bugs regarding this issue, for example: 472938, 476992 and > 477214. If I understand things correctly, all installed modules are > enabled, > but they're loaded "on-demand" (I guess this means the first time they're > used, but I'm not sure). The way suggested in one of these bugs to have a > working autocompletion is to source > /usr/share/bash-completion/bash_completion > from you .bashrc file. > > Stefano > > > I agree w/ the user in 477214. This is completely broken. And the lack of notice to the user post-emerge on how to set things up 'the new way' is infuriating. Guess I'll add this to my 'check back in 6 months to see if they've got it sorted' list Thanks Stefano -- Douglas J Hunley (doug.hunley@gmail.com) Twitter: @hunleyd Web: douglasjhunley.com G+: http://goo.gl/sajR3 [-- Attachment #2: Type: text/html, Size: 1714 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Re: [gentoo-user] bash-completion change? 2013-07-25 12:14 ` Douglas J Hunley @ 2013-07-25 15:16 ` Stefano Crocco 0 siblings, 0 replies; 16+ messages in thread From: Stefano Crocco @ 2013-07-25 15:16 UTC (permalink / raw To: gentoo-user On Thursday 25 July 2013 Douglas J Hunley wrote > On Wed, Jul 24, 2013 at 10:05 AM, Stefano Crocco <stefano.crocco@alice.it>wrote: > > There are a few bugs regarding this issue, for example: 472938, 476992 and > > 477214. If I understand things correctly, all installed modules are > > enabled, > > but they're loaded "on-demand" (I guess this means the first time they're > > used, but I'm not sure). The way suggested in one of these bugs to have a > > working autocompletion is to source > > /usr/share/bash-completion/bash_completion > > from you .bashrc file. > > > > Stefano > > I agree w/ the user in 477214. This is completely broken. And the lack of > notice to the user post-emerge on how to set things up 'the new way' is > infuriating. Guess I'll add this to my 'check back in 6 months to see if > they've got it sorted' list > > Thanks Stefano > > -- > Douglas J Hunley (doug.hunley@gmail.com) > Twitter: @hunleyd Web: > douglasjhunley.com > G+: http://goo.gl/sajR3 I agree with you about the lack of a post-emerge message! I spent at least one hour the other day trying to understand why suddenly bash completion wasn't working anymore. I think all of this is still a work in progress, however, since the eselect package still installs the man page for the bashcomp module (bashcomp.eselect)! Stefano ^ permalink raw reply [flat|nested] 16+ messages in thread
* [gentoo-user] Re: bash-completion change? 2013-07-24 12:06 [gentoo-user] bash-completion change? Douglas J Hunley 2013-07-24 14:05 ` Stefano Crocco @ 2013-07-26 17:12 ` Nikos Chantziaras 2013-07-26 19:13 ` gottlieb 1 sibling, 1 reply; 16+ messages in thread From: Nikos Chantziaras @ 2013-07-26 17:12 UTC (permalink / raw To: gentoo-user 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. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Re: bash-completion change? 2013-07-26 17:12 ` [gentoo-user] " Nikos Chantziaras @ 2013-07-26 19:13 ` gottlieb 2013-07-26 21:39 ` Nikos Chantziaras 0 siblings, 1 reply; 16+ messages in thread From: gottlieb @ 2013-07-26 19:13 UTC (permalink / raw To: gentoo-user 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? thanks, allan /usr/share/bash-completion: total used in directory 52K available 14G drwxr-xr-x 2 4.0K Jul 25 09:20 completions -rw-r--r-- 1 2.5K Jan 31 22:15 colormgr -rw-r--r-- 1 553 Feb 27 10:52 dbus -rw-r--r-- 1 1.2K Dec 30 2012 dconf -rw-r--r-- 1 935 Dec 30 2012 gdbus -rw-r--r-- 1 1.4K Dec 30 2012 gresource -rw-r--r-- 1 2.6K Dec 30 2012 gsettings -rw-r--r-- 1 2.5K Jan 16 2013 gvfs -rw-r--r-- 1 3.4K Jun 15 11:15 ibus -rw-r--r-- 1 6.4K Jul 15 16:48 libreoffice -rw-r--r-- 1 1.4K Jul 16 21:32 rake -rw-r--r-- 1 475 Jul 15 14:53 zeitgeist-daemon ^ permalink raw reply [flat|nested] 16+ messages in thread
* [gentoo-user] Re: bash-completion change? 2013-07-26 19:13 ` gottlieb @ 2013-07-26 21:39 ` Nikos Chantziaras 2013-07-26 21:46 ` Bruce Hill 2013-07-26 23:37 ` gottlieb 0 siblings, 2 replies; 16+ messages in thread 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 [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Re: bash-completion change? 2013-07-26 21:39 ` Nikos Chantziaras @ 2013-07-26 21:46 ` Bruce Hill 2013-07-26 23:23 ` Neil Bothwick 2013-07-26 23:37 ` gottlieb 1 sibling, 1 reply; 16+ messages in thread From: Bruce Hill @ 2013-07-26 21:46 UTC (permalink / raw To: gentoo-user On Sat, Jul 27, 2013 at 12:39:13AM +0300, Nikos Chantziaras wrote: > > You probably forgot to re-emerge all packages that provide bash > completion files: > > emerge -av1 \$(qfile -q -S -C /usr/share/bash-completion) little syntax help: emerge -av1 $(qfile -q -S -C /usr/share/bash-completion) -- Happy Penguin Computers >') 126 Fenco Drive ( \ Tupelo, MS 38801 ^^ support@happypenguincomputers.com 662-269-2706 662-205-6424 http://happypenguincomputers.com/ A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Re: bash-completion change? 2013-07-26 21:46 ` Bruce Hill @ 2013-07-26 23:23 ` Neil Bothwick 2013-07-27 14:49 ` gottlieb 0 siblings, 1 reply; 16+ messages in thread From: Neil Bothwick @ 2013-07-26 23:23 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 445 bytes --] On Fri, 26 Jul 2013 16:46:21 -0500, Bruce Hill wrote: > > You probably forgot to re-emerge all packages that provide bash > > completion files: > > > > emerge -av1 \$(qfile -q -S -C /usr/share/bash-completion) > > little syntax help: > > emerge -av1 $(qfile -q -S -C /usr/share/bash-completion) emerge -1a /usr/share/bash-completion -- Neil Bothwick Member, National Association For Tagline Assimilators (NAFTA) [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Re: bash-completion change? 2013-07-26 23:23 ` Neil Bothwick @ 2013-07-27 14:49 ` gottlieb 2013-07-28 16:08 ` Neil Bothwick 0 siblings, 1 reply; 16+ messages in thread From: gottlieb @ 2013-07-27 14:49 UTC (permalink / raw To: gentoo-user On Fri, Jul 26 2013, Neil Bothwick wrote: > On Fri, 26 Jul 2013 16:46:21 -0500, Bruce Hill wrote: > >> > You probably forgot to re-emerge all packages that provide bash >> > completion files: >> > >> > emerge -av1 \$(qfile -q -S -C /usr/share/bash-completion) >> >> little syntax help: >> >> emerge -av1 $(qfile -q -S -C /usr/share/bash-completion) > > emerge -1a /usr/share/bash-completion Yes we learned this trick a month or two ago. allan PS But my real problem is converting to systemd! ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Re: bash-completion change? 2013-07-27 14:49 ` gottlieb @ 2013-07-28 16:08 ` Neil Bothwick 2013-07-28 16:47 ` Nikos Chantziaras 0 siblings, 1 reply; 16+ messages in thread From: Neil Bothwick @ 2013-07-28 16:08 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 473 bytes --] On Sat, 27 Jul 2013 10:49:46 -0400, gottlieb@nyu.edu wrote: > >> > emerge -av1 \$(qfile -q -S -C /usr/share/bash-completion) > >> > >> little syntax help: > >> > >> emerge -av1 $(qfile -q -S -C /usr/share/bash-completion) > > > > emerge -1a /usr/share/bash-completion > > Yes we learned this trick a month or two ago. Apparently, not all of us. -- Neil Bothwick Remember that the Titanic was built by experts, and the Ark by a newbie [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* [gentoo-user] Re: bash-completion change? 2013-07-28 16:08 ` Neil Bothwick @ 2013-07-28 16:47 ` Nikos Chantziaras 2013-07-28 16:53 ` Alan McKinnon 2013-07-28 18:25 ` Neil Bothwick 0 siblings, 2 replies; 16+ messages in thread From: Nikos Chantziaras @ 2013-07-28 16:47 UTC (permalink / raw To: gentoo-user On 28/07/13 19:08, Neil Bothwick wrote: > On Sat, 27 Jul 2013 10:49:46 -0400, gottlieb@nyu.edu wrote: > >>>>> emerge -av1 \$(qfile -q -S -C /usr/share/bash-completion) >>>> >>>> little syntax help: >>>> >>>> emerge -av1 $(qfile -q -S -C /usr/share/bash-completion) >>> >>> emerge -1a /usr/share/bash-completion >> >> Yes we learned this trick a month or two ago. > > Apparently, not all of us. And apparently not even the Gentoo dev who put that message in the ebuild :-) ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Re: bash-completion change? 2013-07-28 16:47 ` Nikos Chantziaras @ 2013-07-28 16:53 ` Alan McKinnon 2013-07-28 18:25 ` Neil Bothwick 1 sibling, 0 replies; 16+ messages in thread From: Alan McKinnon @ 2013-07-28 16:53 UTC (permalink / raw To: gentoo-user On 28/07/2013 18:47, Nikos Chantziaras wrote: > On 28/07/13 19:08, Neil Bothwick wrote: >> On Sat, 27 Jul 2013 10:49:46 -0400, gottlieb@nyu.edu wrote: >> >>>>>> emerge -av1 \$(qfile -q -S -C /usr/share/bash-completion) >>>>> >>>>> little syntax help: >>>>> >>>>> emerge -av1 $(qfile -q -S -C /usr/share/bash-completion) >>>> >>>> emerge -1a /usr/share/bash-completion >>> >>> Yes we learned this trick a month or two ago. >> >> Apparently, not all of us. > > And apparently not even the Gentoo dev who put that message in the > ebuild :-) > > I'm still stumped about what this change is for or what it does. And I've read all the bugs, all the posts here - still stumped. I get a sense that it somehow has something to do with make the ebuild $MORE_CLOSELY resemble the $BEHAVIOUR of $UPSTREAM_DEFAULT Note the variables :-) -- Alan McKinnon alan.mckinnon@gmail.com ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Re: bash-completion change? 2013-07-28 16:47 ` Nikos Chantziaras 2013-07-28 16:53 ` Alan McKinnon @ 2013-07-28 18:25 ` Neil Bothwick 2013-07-29 1:09 ` Nikos Chantziaras 1 sibling, 1 reply; 16+ messages in thread From: Neil Bothwick @ 2013-07-28 18:25 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 409 bytes --] On Sun, 28 Jul 2013 19:47:38 +0300, Nikos Chantziaras wrote: > >> Yes we learned this trick a month or two ago. > > > > Apparently, not all of us. > > And apparently not even the Gentoo dev who put that message in the > ebuild :-) Is is portage 2.2 only? I don't have anything with portage 2.1 installed to check. -- Neil Bothwick Top Oxymorons Number 38: Government organization [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* [gentoo-user] Re: bash-completion change? 2013-07-28 18:25 ` Neil Bothwick @ 2013-07-29 1:09 ` Nikos Chantziaras 0 siblings, 0 replies; 16+ messages in thread From: Nikos Chantziaras @ 2013-07-29 1:09 UTC (permalink / raw To: gentoo-user On 28/07/13 21:25, Neil Bothwick wrote: > On Sun, 28 Jul 2013 19:47:38 +0300, Nikos Chantziaras wrote: > >>>> Yes we learned this trick a month or two ago. >>> >>> Apparently, not all of us. >> >> And apparently not even the Gentoo dev who put that message in the >> ebuild :-) > > Is is portage 2.2 only? I don't have anything with portage 2.1 installed > to check. Works with 2.1 from ~arch too. And it has for a while now; it's just something I used only once or twice and tend to forget about it. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Re: bash-completion change? 2013-07-26 21:39 ` Nikos Chantziaras 2013-07-26 21:46 ` Bruce Hill @ 2013-07-26 23:37 ` gottlieb 1 sibling, 0 replies; 16+ messages in thread From: gottlieb @ 2013-07-26 23:37 UTC (permalink / raw To: gentoo-user On Fri, Jul 26 2013, Bruce Hill wrote: > On Sat, Jul 27, 2013 at 12:39:13AM +0300, Nikos Chantziaras wrote: >> >> On 26/07/13 22:13, gottlieb@nyu.edu wrote: >>> On Fri, Jul 26 2013, Nikos Chantziaras wrote: >>> >>>> 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. > > little syntax help: > > emerge -av1 $(qfile -q -S -C /usr/share/bash-completion) Thank you nikos and bruce. allan ^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2013-07-29 1:10 UTC | newest] Thread overview: 16+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-07-24 12:06 [gentoo-user] bash-completion change? Douglas J Hunley 2013-07-24 14:05 ` Stefano Crocco 2013-07-25 12:14 ` Douglas J Hunley 2013-07-25 15:16 ` Stefano Crocco 2013-07-26 17:12 ` [gentoo-user] " Nikos Chantziaras 2013-07-26 19:13 ` gottlieb 2013-07-26 21:39 ` Nikos Chantziaras 2013-07-26 21:46 ` Bruce Hill 2013-07-26 23:23 ` Neil Bothwick 2013-07-27 14:49 ` gottlieb 2013-07-28 16:08 ` Neil Bothwick 2013-07-28 16:47 ` Nikos Chantziaras 2013-07-28 16:53 ` Alan McKinnon 2013-07-28 18:25 ` Neil Bothwick 2013-07-29 1:09 ` Nikos Chantziaras 2013-07-26 23:37 ` gottlieb
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox