You are not logged in.
Pages: 1
Hi,
I noticed that several bash completions weren't available, Like apt for example.
After I included the following line at the end of /usr/share/bash-completion/bash_completion I got all missing bash completions:
. /usr/share/bash-completion/completions/*
Why isn't this directory being sourced automatically?
Offline
Does that happen on Debian also? I assume so since we pull it directly from their repos. Please file a bug upstream if there isn't one already.
Offline
Does that happen on Debian also? I assume so since we pull it directly from their repos. Please file a bug upstream if there isn't one already.
I'm not sure as I have never used debian but I will look for a bug and fill a new one if necessary.
Thanks!
Offline
Sorry if this sounds silly, but please consider that /etc/bash_completion is *not* included by default in your bashrc/profile. So in order for the completions to work you have to explicitly source /etc/bash_completion in your bashrc/profile.
My2Cents
Offline
Sorry if this sounds silly, but please consider that /etc/bash_completion is *not* included by default in your bashrc/profile. So in order for the completions to work you have to explicitly source /etc/bash_completion in your bashrc/profile.
That could definitely be the problem but I already uncommented the lines that source /usr/share/bash-completion/bash_completion in my profile.
After that I had to also include
. /usr/share/bash-completion/completions/*
at the end of /usr/share/bash-completion/bash_completion to get several bash completions to work.
For example, apt package names bash completion only worked after that. Are apt package names bash completion working for you?
Offline
I have always sourced only "/etc/bash_completion" (which, BTW, sources /usr/share/bash-completion/bash_completion, which in turns loads all the completions under /usr/share/bash-completion/completions/ ...) and I don't use apt :-)
Offline
I have always sourced only "/etc/bash_completion" (which, BTW, sources /usr/share/bash-completion/bash_completion, which in turns loads all the completions under /usr/share/bash-completion/completions/ ...) and I don't use apt :-)
AFAICT the problem is exactly that /usr/share/bash-completion/bash_completion doesn't source /usr/share/bash-completion/completions
I had to manually include
. /usr/share/bash-completion/completions/*
in /usr/share/bash-completion/bash_completion to get /usr/share/bash-completion/completions completions.
Offline
Sorry if this sounds silly, but please consider that /etc/bash_completion is *not* included by default in your bashrc/profile. So in order for the completions to work you have to explicitly source /etc/bash_completion in your bashrc/profile.
My2Cents
I have never touched my bash profile and bash_completion has always worked. Maybe that's an Xfce thing?
Offline
Pages: 1