1 2 3 4 5 6 7 8 9 10 11 12
#autoload local expl _description files expl 'object file' __object_file() { [[ -x $REPLY || $REPLY = *.(a|o|elf|dylib) || $REPLY = *.so(.<->)# || $REPLY = (core*|*.core) ]] } _files -g '*(-.e,__object_file,)' "$@" "${(@)expl}"