En root: #
Mettre le fichier de cette façon:
nano /etc/bash.bashrc
# enable bash complétion in interactive shells
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
Ensuite on se délog avec CTRL+d ou exit puis on se relog et c’est ok