diff options
-rw-r--r-- | Completion/Unix/Type/_pspdf | 14 |
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" |