2013-09-30 06:40:51 +04:00
|
|
|
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
2013-10-02 17:42:37 +04:00
|
|
|
##@before *
|
2013-09-30 06:40:51 +04:00
|
|
|
|
2014-04-04 15:10:10 +04:00
|
|
|
if [ -n "$UTOOLS_BASH_COMPLETION" ]; then
|
|
|
|
if [ -f /etc/debian_version ]; then
|
|
|
|
case "$(</etc/debian_version)" in
|
|
|
|
6*|squeeze*)
|
2015-03-18 16:55:12 +04:00
|
|
|
# le code suivant n'est compatible qu'avec debian squeeze (plus
|
|
|
|
# exactement, avec bash 4.0)
|
2015-03-18 17:26:21 +04:00
|
|
|
source "@@dest@@/lib/ulib/bash40/bash_completion"
|
2014-04-04 15:10:10 +04:00
|
|
|
;;
|
|
|
|
7*|wheezy*)
|
2015-03-18 16:55:12 +04:00
|
|
|
# le code suivant n'est compatible qu'avec debian wheezy (plus
|
2015-03-18 17:26:21 +04:00
|
|
|
# exactement, avec bash 4.1)
|
|
|
|
source "@@dest@@/lib/ulib/bash41/bash_completion"
|
2014-04-04 15:10:10 +04:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
2015-03-18 16:55:12 +04:00
|
|
|
if [ -n "$BASH_COMPLETION" ]; then
|
2015-03-18 17:54:45 +04:00
|
|
|
for i in "@@dest@@/lib/bash_completion.d/"*; do
|
2015-03-18 16:55:12 +04:00
|
|
|
[ -f "$i" ] || continue
|
|
|
|
source "$i"
|
|
|
|
done
|
|
|
|
fi
|
2013-09-30 06:40:51 +04:00
|
|
|
fi
|