fall back to filedir completion

This commit is contained in:
Jordan Liggitt 2015-06-22 11:21:36 -04:00
parent 312092086b
commit e503748591

View file

@ -88,6 +88,11 @@ __handle_reply()
fi fi
COMPREPLY=( $(compgen -W "${completions[*]}" -- "$cur") ) COMPREPLY=( $(compgen -W "${completions[*]}" -- "$cur") )
if [[ ${#completions[@]} -eq 0 ]]; then
__debug "${FUNCNAME}: no known completions, falling back to _filedir"
_filedir
fi
if [[ ${#COMPREPLY[@]} -eq 0 ]]; then if [[ ${#COMPREPLY[@]} -eq 0 ]]; then
declare -F __custom_func >/dev/null && __custom_func declare -F __custom_func >/dev/null && __custom_func
fi fi