Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
help with a completion script?
- X-seq: zsh-workers 35978
- From: Will Leinweber <will@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: help with a completion script?
- Date: Tue, 4 Aug 2015 19:56:45 +0200
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
I have a medium-to-small completion script here: http://git.io/vOaxv .
I've read through several tutorials, other scripts, and zshcompsys(1),
but there is one main thing I haven't been able to figure out.
The first argument to this binary is either one of several
subcommands, and that is all fine, however it can also be a *.cr file.
I tried adding in _files to the subcommand list, but instead of
showing files it shows just a literal * character and ends there.
Does anyone know of example completion scripts that do both
subcommands and files as the first argument, or know how to do this?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author