1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-20 14:04:03 +01:00
zsh/Completion/User/_pdf

17 lines
333 B
Plaintext
Raw Normal View History

#compdef acroread pdf2dsc pdf2ps pdfimages pdfinfo pdftopbm pdftops pdftotext xpdf
1999-04-15 20:05:38 +02:00
local expl ext=''
# ghostscript:
# pdf2dsc pdf2ps
# xpdf:
# pdfimages pdfinfo pdftopbm pdftops pdftotext xpdf
if [[ "$1" == '-z' ]]; then
ext='(|.gz|.Z)'
shift
fi
_description files expl 'PDF file'
_files "$@" "$expl[@]" -g "*.(#i)pdf$ext"