diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-30 10:08:13 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-30 10:08:13 +0000 |
commit | 1d6c3eaaa0618d35329495a324c9fd2e7ed9843a (patch) | |
tree | 531e2d0e02699b1288ec20a45c0042bf209fb402 /Completion/User/_gs_name | |
parent | e55cf16d1232b54efb80a7861c28cf094eaeedff (diff) | |
download | zsh-1d6c3eaaa0618d35329495a324c9fd2e7ed9843a.tar.gz zsh-1d6c3eaaa0618d35329495a324c9fd2e7ed9843a.tar.xz zsh-1d6c3eaaa0618d35329495a324c9fd2e7ed9843a.zip |
zsh-workers/7533
Diffstat (limited to 'Completion/User/_gs_name')
-rw-r--r-- | Completion/User/_gs_name | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Completion/User/_gs_name b/Completion/User/_gs_name new file mode 100644 index 000000000..3aef646eb --- /dev/null +++ b/Completion/User/_gs_name @@ -0,0 +1,31 @@ +#autoload + +local expl + +if [[ "$1" = -d ]]; then + if [[ "$PREFIX" = *\=* ]]; then + _message 'systemdict definition value' + else + _description expl 'systemdict definition name' + compadd "$expl[@]" -M 'm:{a-z}={A-Z}' - \ + DISKFONTS NOCACHE NOBIND NODISPLAY NOPAUSE PLATFONTS SAFER \ + WRITESYSTEMDICT + fi +elif compset -P '*\='; then + case "$IPREFIX" in + *DEVICE\=) + _description expl 'ghostscript device' + compadd "$expl[@]" - "${(@)${=${$(gs -h)##* devices:}%%Search path:*}:#}" + ;; + *OutputFile\=) + _description expl 'output file' + _files + ;; + *) + _message 'systemdict value' + return 1 + esac +else + _description expl 'systemdict name' + compadd "$expl[@]" -S\= -M 'm:{a-z}={A-Z}' - DEVICE OutputFile +fi |