1 2 3 4 5 6 7 8 9 10 11 12 13 14
#compdef ps2epsi ps2pdf psmulti pswrap local expl ext='' # ghostscript: # ps2epsi ps2pdf if [[ "$1" == '-z' ]]; then ext='(|.gz|.Z)' shift fi _description files expl 'PostScript file' _files "$@" "$expl[@]" -g "*.(#i)(ps|eps)$ext"