Now that it is possible to have per-user bash completions installed via bash-completion-config, the skel .bashrc provided by baselayout should include code to source any files in ~/.bash_completion.d (commented out by default, of course). Something like the following: [ -d ~/.bash_completion.d ] && for i in ~/.bash_completion.d/*; do [ -f $i ] && . $i; done
the following is already in skel's bashrc: # uncomment the following to activate bash-completion: #[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion why cant this suggested enhancement be added to that file instead ?
/etc isn't per-user.
heh that was my original idea but I didn't think it would work (obviously I wasn't alone ;p). $ tail /etc/profile.d/bash-completion if [ "$PS1" ] && [ -d ~/.bash_completion.d ] ; then for file in ~/.bash_completion.d/* ; do [ -f $file ] && source $file done fi $ echo lala="LALALALALALALA" > ~/.bash_completion.d/lala $ . /etc/profile.d/bash-completion $ echo $lala LALALALALALALA Sorry for the spam guys...
i didnt say /etc was per-user, but if the global bash-completion does a per-user check like Aaron suggested ...