about summary refs log tree commit diff
path: root/Completion/Unix/Type/_pdf
blob: 9b512775da5752d8afa7c150028060d610c7a5c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#compdef pdf2dsc pdf2ps pdfimages pdfinfo pdftopbm pdftops pdftotext pdfopt pdffonts kpdf okular

local expl ext=''

# ghostscript:
#  pdf2dsc pdf2ps pdfopt
# xpdf:
#  pdfimages pdfinfo pdftopbm pdftops pdftotext xpdf pdffonts
# KDE 3:
#  kpdf
# KDE 4:
#  okular

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

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