about summary refs log tree commit diff
path: root/Completion/User/_ps
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-08-23 08:27:01 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-08-23 08:27:01 +0000
commit989faba5887f1961b31a2e16b42261ee48355042 (patch)
tree77d6a7f1a71405b2bf84911d7067b6ce56530d69 /Completion/User/_ps
parent0992bff14c9274d26a30b1ace878ccface48d006 (diff)
downloadzsh-989faba5887f1961b31a2e16b42261ee48355042.tar.gz
zsh-989faba5887f1961b31a2e16b42261ee48355042.tar.xz
zsh-989faba5887f1961b31a2e16b42261ee48355042.zip
complete compressed files for gv; improve results from _pspdf (12692)
Diffstat (limited to 'Completion/User/_ps')
-rw-r--r--Completion/User/_ps15
1 files changed, 13 insertions, 2 deletions
diff --git a/Completion/User/_ps b/Completion/User/_ps
index 6bc0643b2..57c419ba3 100644
--- a/Completion/User/_ps
+++ b/Completion/User/_ps
@@ -1,3 +1,14 @@
-#defcomp  gs ghostview gview psnup psselect pswrap pstops pstruct lpr
+#compdef ps2epsi ps2pdf psmulti pswrap
 
-_files -g '*([pP][sS]|eps)'
+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"