2009-12-29 23:50:08 +01:00
|
|
|
# Check for interactive bash and that we haven't already been sourced.
|
|
|
|
[ -z "$BASH_VERSION" -o -z "$PS1" -o -n "$BASH_COMPLETION" ] && return
|
|
|
|
|
|
|
|
# Check for recent enough version of bash.
|
|
|
|
bash=${BASH_VERSION%.*}; bmajor=${bash%.*}
|
2010-01-03 13:58:32 +02:00
|
|
|
if [ $bmajor -ge 3 -a -r @sysconfdir@/bash_completion ]; then
|
2009-12-29 23:50:08 +01:00
|
|
|
# Source completion code.
|
|
|
|
. @sysconfdir@/bash_completion
|
|
|
|
fi
|
|
|
|
unset bash bmajor
|