about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-04-18 14:53:24 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-04-18 14:53:24 +0000
commit101d298859c12ab10a2a0714e846fb1aff15f3a2 (patch)
tree83385e673aee8d3957956538fcc72df21b7e5787 /Completion/Unix
parent90b6dbd2e0b1b264f2c4ae906e447f4d0a9da335 (diff)
downloadzsh-101d298859c12ab10a2a0714e846fb1aff15f3a2.tar.gz
zsh-101d298859c12ab10a2a0714e846fb1aff15f3a2.tar.xz
zsh-101d298859c12ab10a2a0714e846fb1aff15f3a2.zip
merge changes from 4.1
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Type/_pdf16
-rw-r--r--Completion/Unix/Type/_ps14
2 files changed, 30 insertions, 0 deletions
diff --git a/Completion/Unix/Type/_pdf b/Completion/Unix/Type/_pdf
new file mode 100644
index 000000000..30d03e397
--- /dev/null
+++ b/Completion/Unix/Type/_pdf
@@ -0,0 +1,16 @@
+#compdef acroread pdf2dsc pdf2ps pdfimages pdfinfo pdftopbm pdftops pdftotext xpdf pdfopt pdffonts
+
+local expl ext=''
+
+# ghostscript:
+#  pdf2dsc pdf2ps pdfopt
+# xpdf:
+#  pdfimages pdfinfo pdftopbm pdftops pdftotext xpdf pdffonts
+
+if [[ "$1" == '-z' ]]; then
+  ext='(|.gz|.Z)'
+  shift
+fi
+
+_description files expl 'PDF file'
+_files "$@" "$expl[@]" -g "*.(#i)pdf$ext"
diff --git a/Completion/Unix/Type/_ps b/Completion/Unix/Type/_ps
new file mode 100644
index 000000000..2f33d235f
--- /dev/null
+++ b/Completion/Unix/Type/_ps
@@ -0,0 +1,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='(|.gz|.Z)'
+  shift
+fi
+
+_description files expl 'PostScript file'
+_files "$@" "$expl[@]" -g "*.(#i)(ps|eps)$ext"