bash-completion/bash-completion.profile

11 lines
313 B
Plaintext
Raw Normal View History

2004-11-08 04:04:55 +00:00
# check for bash
[ -z "$BASH_VERSION" ] && return
# check for correct version of bash
bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
if [ $bmajor -eq 2 ] && [ $bminor '>' 04 ] && [ -r /etc/bash_completion ]; then
# source completion code
. /etc/bash_completion
fi
unset bash bminor bmajor