--- bash_completion | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/bash_completion b/bash_completion index 4bfa4de..84bbe80 100644 --- a/bash_completion +++ b/bash_completion @@ -1817,17 +1817,12 @@ _completion_loader() local compdir=./completions [[ $BASH_SOURCE == */* ]] && compdir="${BASH_SOURCE%/*}/completions" - # If full path below completions dir exists, use it. - if [[ $1 == */* && -f "$compdir/$1" ]]; then - . "$compdir/$1" &>/dev/null && return 124 || return 1 - fi - # Special case for init.d scripts. if [[ $1 == /etc?(/rc.d)/init.d/* ]]; then . "$compdir/service" &>/dev/null && return 124 || return 1 fi - # Finally, try basename. + # Try basename. . "$compdir/${1##*/}" &>/dev/null && return 124 # Fall back to something generic if we don't have anything else. -- 1.7.4.4 _______________________________________________ Bash-completion-devel mailing list Bash-completion-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-devel