summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:41:22 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:41:22 +0000
commit8106ddff3624fadc1585a39ad4fac9416bfa920f (patch)
tree87664d7ba9697f51dd772ba3b716bd4db79b43c4
parent605bf67889e2aa32f9937029ead5f81169c59e07 (diff)
downloadzsh-8106ddff3624fadc1585a39ad4fac9416bfa920f.tar.gz
zsh-8106ddff3624fadc1585a39ad4fac9416bfa920f.tar.xz
zsh-8106ddff3624fadc1585a39ad4fac9416bfa920f.zip
moved from Completion/User/_ps
-rw-r--r--Completion/Unix/Type/_ps14
1 files changed, 14 insertions, 0 deletions
diff --git a/Completion/Unix/Type/_ps b/Completion/Unix/Type/_ps
new file mode 100644
index 000000000..57c419ba3
--- /dev/null
+++ b/Completion/Unix/Type/_ps
@@ -0,0 +1,14 @@
+#compdef ps2epsi ps2pdf psmulti pswrap
+
+local expl ext=''
+
+# ghostscript:
+#  ps2epsi ps2pdf
+
+if [[ "$1" == '-z' ]]; then
+  ext='(|.gz|.Z)'
+  shift
+fi
+
+_description files expl 'PostScript file'
+_files "$@" "$expl[@]" -g "*.(#i)(ps|eps)$ext"