bash-completion/bash-completion.profile

12 lines
417 B
Plaintext
Raw Normal View History

# check for bash (and that we haven't already been sourced, see eg. #174355)
[ -z "$BASH_VERSION" -o -n "$BASH_COMPLETION" ] && return
2004-11-08 04:04:55 +00:00
# check for correct version of bash
bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
if [ -r /etc/bash_completion ] && \
[ $bmajor -eq 2 -a $bminor '>' 04 -o $bmajor -gt 2 ] ; then
2004-11-08 04:04:55 +00:00
# source completion code
. /etc/bash_completion
fi
unset bash bminor bmajor