I would like to write a ZSH completion where one of the arguments must be an executable file.
While :_files
works well enough to list all files, there does not appear to be an easy way to list only executable files. The glob expression ls *(*)
does this, but I'm not sure how to apply this filter to :_files
.