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/_ps | |
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/_ps')
-rw-r--r-- | Completion/User/_ps | 15 |
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" |