[Bash-completion-devel] Bug#678174: bash-completion: /etc/profile.d/bash_completion.sh does not work for non-login shells (e.g., screen, xterm)

Matthijs Kooijman matthijs at stdin.nl
Sun Dec 16 14:58:09 UTC 2012


Hi,

> It seems to me that the best place to put the enabling code is in
> /etc/bash.bashrc, but that's of course not up to the bash-completion
> package.
> 
> One thing that springs to mind is to have bash offer an
> /etc/bash.bashrc.d directory similar to /etc/profile.d, so
> bash-completion can ship a hook in there instead of in /etc/profile.d.
> Seems there's already a wishlist bug for that against bash: #675008.

It seems that the wheezy version of bash now has bash-completion enabled
in /etc/skel/.bashrc, which would remove the need for this
/etc/profile.d/bash_completion.sh file altogether (though just removing
it would not offer painless migration for existing users, of course...).

Gr.

Matthijs



More information about the Bash-completion-devel mailing list