# to make bash completion available to all bash users add # the following lines to /etc/profile # # alternatively if you want to add bash completion for every newly created user # add the following lines to /etc/skel/.bashrc bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.} if [ "$PS1" ] && [ $bmajor -eq 2 ] && [ $bminor '>' 04 ] \ && [ -f /etc/bash_completion ]; then # interactive shell # Source completion code . /etc/bash_completion fi unset bash bmajor bminor