summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:39:31 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:39:31 +0000
commit852ca6835090b69f7779ec0ce03ff3117ba5b830 (patch)
treeb193ccaa906ed4f2a9586faf6110e1e51d1cf0cb /Completion/Unix
parentbd86ea7185f6a7896466cac1ad8fd4844cd21699 (diff)
downloadzsh-852ca6835090b69f7779ec0ce03ff3117ba5b830.tar.gz
zsh-852ca6835090b69f7779ec0ce03ff3117ba5b830.tar.xz
zsh-852ca6835090b69f7779ec0ce03ff3117ba5b830.zip
moved from Completion/User/_pdf
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Type/_pdf16
1 files changed, 16 insertions, 0 deletions
diff --git a/Completion/Unix/Type/_pdf b/Completion/Unix/Type/_pdf
new file mode 100644
index 000000000..de373a355
--- /dev/null
+++ b/Completion/Unix/Type/_pdf
@@ -0,0 +1,16 @@
+#compdef acroread pdf2dsc pdf2ps pdfimages pdfinfo pdftopbm pdftops pdftotext xpdf
+
+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"