_completion_loader: Use _longopt as the fallback.
This commit is contained in:
parent
ff8e52c960
commit
f6cd9344fb
@ -1836,8 +1836,8 @@ _completion_loader()
|
|||||||
# Finally, try basename.
|
# Finally, try basename.
|
||||||
. "$compdir/${1##*/}" &>/dev/null && return 124
|
. "$compdir/${1##*/}" &>/dev/null && return 124
|
||||||
|
|
||||||
# Fall back to something generic if we don't have anything else.
|
# Need to define *something*, otherwise there will be no completion at all.
|
||||||
complete -o bashdefault -f "$1" && return 124
|
complete -F _longopt "$1" && return 124
|
||||||
} &&
|
} &&
|
||||||
complete -D -F _completion_loader
|
complete -D -F _completion_loader
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user