1 2 3 4 5 6 7
#defcomp -command- local nm=$compstate[nmatches] compgen -c [[ nm -eq compstate[nmatches] ]] && _path_files -/g "*(*)"