about summary refs log tree commit diff
path: root/Completion/User/_pspdf
blob: 93856164cc0359f8724994008dbe5033ba510b49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#compdef gsbj gsdj gsdj500 gslj gslp gsnd ps2ascii ghostview mgv ggv pstoedit pstotgif

local expl ext

# ghostscript:
#  gs gsbj gsdj gsdj500 gslj gslp gsnd ps2ascii

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

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