View previous topic :: View next topic |
Author |
Message |
zyko l33t
Joined: 01 Jun 2008 Posts: 620 Location: Munich, Germany
|
Posted: Fri Nov 20, 2015 12:27 am Post subject: After upgrade to newest bash-completion-2.1: Nothing Works |
|
|
Hi guys,
I haven't upgraded my system in a long time. Recently however, I did. This upgraded bash-completion to version 2.1_p20141224. Ever since, I don't have any tab completion at all.
For example I type "emerge cows" and hit tab. It should complete to "emerge cowsay", but in my case, absolutely nothing happens. I haven't found a single command with working tab completion, so I guess it's all b0rked up?
The news item (https://www.gentoo.org/support/news-items/2014-11-25-bash-completion-2_1-r90.html) says that I need to re-emerge all packages that have completions, and so I re-emerged everything. Still nothing. No completions at all. Otherwise I did everything the news item told me to.
I ran ls -lashF /usr/share/bash-completion/completions. This lists a lot of software, most of which I don't remember installing ever. I'don't know if this is a leed? Shlould my commands have completion files in this folder? And if so, how do I
Now sadly I never cared to learn how bash-completion works. I used to be a real Gentoo crack, but I stopped reading up on new stuff and being a part of the community, and so I forgot most of what I knew. So please treat me as a newbie. I can't figure out how to fix this.
Thank you all in advance! |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sat Nov 21, 2015 1:42 pm Post subject: |
|
|
zyko ... I'm a zsh user, and so have absolutely no idea of how bash-completion is configured, I'm only providing the following as your post comes up unanswered.
Note the following:
/etc/profile: | # Bash login shells run only /etc/profile
# Bash non-login shells run only /etc/bash/bashrc
[...]
for sh in /etc/profile.d/*.sh ; do
[ -r "$sh" ] && . "$sh"
done |
This means that if the shell isn't started as a login shell then above sourcing of profile.d/*.sh (which I assume provides the setup for bash-completion) won't occur. So, is the shell a login shell or not? Does executing 'exec bash --login' in your terminal cause the completion to be activated?
best ... khay |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6095 Location: Dallas area
|
Posted: Sat Nov 21, 2015 4:42 pm Post subject: |
|
|
I had tried it in the past, noted that it didn't do completions properly, so then downgraded back to 2.1-r91 and it worked fine. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
zyko l33t
Joined: 01 Jun 2008 Posts: 620 Location: Munich, Germany
|
Posted: Sun Nov 22, 2015 4:38 am Post subject: |
|
|
Khay, thanks for your reply. It doesn't work on a login shell.
Quote: | I had tried it in the past, noted that it didn't do completions properly, so then downgraded back to 2.1-r91 and it worked fine. |
I don't want to invest more time than necessary into solving this, so I'll just downgrad as well (for the time being). This is really interesting though. By all accounts it should work, but it doesn't. I did a quick fresh Gentoo install in VirtualBox. Once I emerged gentoo-bashcomp and bash-completion and re-emerged portage, tab completion just worked for the emerge command. No idea what's going on, but I'd like to solve this before the old bashcomp ebuilds get removed from the tree |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6095 Location: Dallas area
|
Posted: Sun Nov 22, 2015 11:02 am Post subject: |
|
|
I never spent any time investigating why it didn't work. I was busy with other things and just wanted my completion(s) back. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|