File: _postscript

package info (click to toggle)
zsh 5.9-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,856 kB
  • sloc: ansic: 108,138; sh: 6,976; makefile: 722; perl: 687; awk: 291; sed: 16
file content (14 lines) | stat: -rw-r--r-- 333 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#compdef ps2epsi ps2pdf psmulti pswrap ps2pdf12 ps2pdf13 ps2pdf14 ps2pdfwr ps2ps

local expl ext=''

# ghostscript:
#  ps2epsi ps2pdf ps2pdf12 ps2pdf13 ps2pdf14 ps2pdfwr ps2ps

if [[ "$1" == '-z' ]]; then
  ext='(|.bz2|.gz|.Z)'
  shift
fi

_description files expl 'PostScript file'
_files "$@" "$expl[@]" -g "*.(#i)(ps|eps)$ext(-.)"