about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:41:39 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:41:39 +0000
commit373aeadf6c1786888b15260277eb4f5bc903fcbb (patch)
tree238ca6964ef65db15b828fffe8d9d769aff39ecb /Completion
parent42bbc7f9687f037237892e07c13fb282a9be87d2 (diff)
downloadzsh-373aeadf6c1786888b15260277eb4f5bc903fcbb.tar.gz
zsh-373aeadf6c1786888b15260277eb4f5bc903fcbb.tar.xz
zsh-373aeadf6c1786888b15260277eb4f5bc903fcbb.zip
moved from Completion/User/_pspdf
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Type/_pspdf14
1 files changed, 14 insertions, 0 deletions
diff --git a/Completion/Unix/Type/_pspdf b/Completion/Unix/Type/_pspdf
new file mode 100644
index 000000000..93856164c
--- /dev/null
+++ b/Completion/Unix/Type/_pspdf
@@ -0,0 +1,14 @@
+#compdef gsbj gsdj gsdj500 gslj gslp gsnd ps2ascii ghostview mgv ggv pstoedit pstotgif
+
+local expl ext
+
+# ghostscript:
+#  gs gsbj gsdj gsdj500 gslj gslp gsnd ps2ascii
+
+if [[ "$1" == '-z' ]]; then
+  ext='(|.gz|.Z)'
+  shift
+fi
+
+_description files expl 'PostScript or PDF file'
+_files "$@" "$expl[@]" -g "*.(#i)(pdf|ps|eps)$ext"