It is already enabled in /etc/profile.d/bash_completion, so don't also
enable it in /etc/bash.bashrc and ~/.bashrc as well.
# or customize the prompt) in their ~/.bashrc as well.
force_color_prompt=yes
-# enable bash completion in interactive shells
-if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
- . /etc/bash_completion
-fi
-
# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found ]; then
function command_not_found_handle {
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
-
-# enable programmable completion features (you don't need to enable
-# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
-# sources /etc/bash.bashrc).
-if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
- . /etc/bash_completion
-fi