[Bash-completion-devel] Bug#593835: bash-completion: non optional by being in /etc/profile.d

Jonathan Nieder jrnieder at gmail.com
Mon Jul 4 21:18:04 UTC 2011


Hi,

Tim Connors wrote:

> By placing a script in /etc/profile.d/, setting up of bash-completion
> becomes completely non-optional.  Previously, it was up to the user to
> source /etc/bash_completion, but now it is not.

Yep.

Even worse, it's confusing.  Files in /etc/profile.d are only sourced
for login shells; a typical xterm opens a non-login shell.  A more
appropriate way to use bash_completion is to check in .bashrc if the
current shell is interactive and if so source an appropriate file.

Perhaps the relevant shell fragment should go in /etc/skel/.bashrc
instead.

Hope that helps,
Jonathan





More information about the Bash-completion-devel mailing list