Fall back to generic completion for commands we don't have anything for.

master
Ville Skyttä 2011-10-15 10:20:46 +03:00
parent efad9540e5
commit e179afe3c3
1 changed files with 4 additions and 1 deletions

View File

@ -1828,8 +1828,11 @@ _completion_loader()
. "$compdir/service" &>/dev/null && return 124 || return 1
fi
# Finally, use basename.
# Finally, try basename.
. "$compdir/${1##*/}" &>/dev/null && return 124
# Fall back to something generic if we don't have anything else.
complete -o bashdefault -f "$1" && return 124
} &&
complete -D -F _completion_loader