[Bash-completion-devel] New directory layout

Santiago M. Mola cooldwind at gmail.com
Tue Jan 13 01:16:51 UTC 2009

Hi all,

Based on the current aproach on Gentoo and on comments from other
distros, I'd like to propose a new directory layout for bash-completion.

El lun, 12-01-2009 a las 23:55 +0100, Guillaume Rousse escribió:
> We also have a slightly initialisation system, with a file
> in /etc/profile.d sourcing a system-wide /etc/sysconfig/bash-completion
> configuration file, then a ~/.bash-completion to set up relevant
> options. This let sysadmin configure bash completion globally, or not,
> while still allowing individual users to do it in the last case.

In Gentoo, we install all bash-completion modules
to /usr/share/bash-completion/.

Modules are enabled system-wide when they're symlinked
from /etc/bash_completion.d/ and users can enable extra modules creating
symlinks in ~/.bash_completion.d/.

We have a Gentoo-specific tool for handling these symlinks, but I guess
each distro would take its own aproach, which could be a) providing a
configuration interface, b) enabling all modules by default (like some
already do), c) let the user do it himself. 

I think installing modules to /usr/share/bash-completion is more
consistent than the current state (I don't think bash-completion modules
can be considered anything near to configuration files).

Also, this provides more flexibility for distros and users. And it seems
it's needed since enabling/disabling modules system and user wide is a
quite common demanded feature.

With respect backwards compatibility, there's not too much to say: if
someone installs a module directly to /etc/bash_completion.d, it'll
obviously work.


Santiago Moisés Mola
Jabber: cooldwind at gmail.com | GPG: AAD203B5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
Url : http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20090113/a75ec8ce/attachment.pgp 

More information about the Bash-completion-devel mailing list