summaryrefslogtreecommitdiffstats
path: root/extra/source/bash-completion/bash_completion.sh
blob: 84388cb8a503520f6579e0b8ed52dadf4c9d0eb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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
elif [ "$PS1" ] && [ $bmajor -eq 3 ] \
   && [ -f /etc/bash_completion ]; then # interactive shell
        # Source completion code
        . /etc/bash_completion
fi
unset bash bmajor bminor