]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/bash-completion/files/bash_completion.sh
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / bash-completion / files / bash_completion.sh
1 # check for bash
2 [ -z "$BASH_VERSION" ] && return
3
4 bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
5 if [ "$PS1" ] && [ $bmajor -eq 2 ] && [ $bminor '>' 04 ] \
6    && [ -f /etc/bash_completion ]; then # interactive shell
7         # Source completion code
8         . /etc/bash_completion
9 fi
10
11 unset bash bmajor bminor
12