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.

Thoughts?

Regards,
-- 
Santiago Moisés Mola
Jabber: [email protected] | GPG: AAD203B5

Attachment: signature.asc
Description: Esta parte del mensaje está firmada digitalmente

_______________________________________________
Bash-completion-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel

Reply via email to