192263e892
Sat Nov 26 2005 Ville Skyttä <ville.skytta at iki.fi> - Don't mark the main source file as %config. - Make profile.d snippet non-executable (#35714) and noreplace. - Add mock, plague-client and repomanage completion. - Allow "cvs stat" completion. - Macroize trigger creation.
12 lines
417 B
Plaintext
12 lines
417 B
Plaintext
# check for bash (and that we haven't already been sourced, see eg. #174355)
|
|
[ -z "$BASH_VERSION" -o -n "$BASH_COMPLETION" ] && return
|
|
|
|
# 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
|
|
# source completion code
|
|
. /etc/bash_completion
|
|
fi
|
|
unset bash bminor bmajor
|