diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-08-23 08:27:01 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-08-23 08:27:01 +0000 |
commit | 989faba5887f1961b31a2e16b42261ee48355042 (patch) | |
tree | 77d6a7f1a71405b2bf84911d7067b6ce56530d69 /Completion/User/_pspdf | |
parent | 0992bff14c9274d26a30b1ace878ccface48d006 (diff) | |
download | zsh-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/_pspdf')
-rw-r--r-- | Completion/User/_pspdf | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Completion/User/_pspdf b/Completion/User/_pspdf new file mode 100644 index 000000000..93856164c --- /dev/null +++ b/Completion/User/_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" |