bash-completion/bash-completion.profile
Ville Skyttä 192263e892 - Work around potential login problem in profile.d snippet (#174355).
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.
2005-11-28 20:26:32 +00:00

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