chargement depuis ~/etc/completion.d
This commit is contained in:
2015-03-23 05:08:27 +04:00
parent bbbc35af62
commit 9182dcf5ca
5 changed files with 17 additions and 13 deletions

View File

@@ -7,14 +7,14 @@
##@require base
uprovide bash_completion
function __is_bash_completion_enabled() {
function __bash_completion_enabled() {
[ -n "$BASH_COMPLETION" ]
}
function __is_bash_completion_module_enabled() {
function __bash_completion_module_enabled() {
[ -n "$BASH_COMPLETION_DIR" -a -f "$BASH_COMPLETION_DIR/$1" ]
}
if ! __is_bash_completion_enabled; then
if ! __bash_completion_enabled; then
BASH_COMPLETION=1
shopt -s extglob progcomp