Hi, I'm interested in this feature as well (so hopefully bash-completion can replace its /etc/profile.d/bash_completion.sh with an /etc/bash.bashrc.d/bash_completion.sh to really work out of the box, see #678174).
So, I created a patch. It isn't very complicated (pretty much copied the
lines for /etc/profile.d from /etc/profile), but I've tested this and it
works.
I'm not sure what is the best place to document this (if any). If you
have suggestions, I'd be happy to also patch the documentation.
Gr.
Matthijs
=== modified file 'etc.bash.bashrc'
--- etc.bash.bashrc 2011-11-30 11:27:55 +0000
+++ etc.bash.bashrc 2012-06-20 15:32:58 +0000
@@ -49,3 +49,13 @@
fi
}
fi
+
+
+if [ -d /etc/bash.bashrc.d ]; then
+ for i in /etc/bash.bashrc.d/*.sh; do
+ if [ -r $i ]; then
+ . $i
+ fi
+ done
+ unset i
+fi
=== modified file 'rules'
--- rules 2011-11-30 09:09:57 +0000
+++ rules 2012-06-20 15:32:57 +0000
@@ -195,6 +195,7 @@
dh_installdirs -p$(p) \
bin \
etc/skel \
+ etc/bash.bashrc.d \
usr/share/doc/$(p)
dh_installdirs -p$(p_doc) \
usr/share/doc/$(p)
signature.asc
Description: Digital signature

