* /etc/skel/.bashrc (pkg=base-files) change the progcomp check to an un-commented
# enable programmable completion
[[ -e /etc/profile.d/bash_completion.sh ]] && . /etc/profile.d/bash_completion.sh
* /etc/bash.bashrc (pkg=bash): remove the progcomp commented-out section, maybe replace with a comment like:
# enable programmable completion with this line, here or (default) in ~/.bashrc
# [[ -e /etc/profile.d/bash_completion.sh ]] && . /etc/profile.d/bash_completion.sh
Root's /root/.bashrc doesn't come into play on an ubuntu system, normally. Even if you use sudo -s, HOME doesn't change, so you still get your own ~/.bashrc
If you're mucking around with testing corner cases, put
echo "bash_completion callstack: ${BASH_SOURCE[*]}"
in /usr/share/bash-completion/bash_completion to get output like
bash_completion callstack: /usr/share/bash-completion/bash_completion /etc/profile.d/bash_completion.sh /home/peter/.bashrc
Or drop that line into /etc/bash_completion.d/trace, if you don't want to modify a non-conffile.
So to be clear, the changes I'm suggesting are:
* /etc/skel/.bashrc (pkg=base-files) change the progcomp check to an un-commented d/bash_ completion. sh ]] && . /etc/profile. d/bash_ completion. sh
# enable programmable completion
[[ -e /etc/profile.
* /etc/bash.bashrc (pkg=bash): remove the progcomp commented-out section, maybe replace with a comment like: d/bash_ completion. sh ]] && . /etc/profile. d/bash_ completion. sh
# enable programmable completion with this line, here or (default) in ~/.bashrc
# [[ -e /etc/profile.
Root's /root/.bashrc doesn't come into play on an ubuntu system, normally. Even if you use sudo -s, HOME doesn't change, so you still get your own ~/.bashrc
If you're mucking around with testing corner cases, put bash-completion /bash_completio n to get output like bash-completion /bash_completio n /etc/profile. d/bash_ completion. sh /home/peter/.bashrc
echo "bash_completion callstack: ${BASH_SOURCE[*]}"
in /usr/share/
bash_completion callstack: /usr/share/
Or drop that line into /etc/bash_ completion. d/trace, if you don't want to modify a non-conffile.