about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-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"