Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to add completion: variant of "make" command
- X-seq: zsh-users 11464
- From: Kai Grossjohann <kai@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: How to add completion: variant of "make" command
- Date: Mon, 30 Apr 2007 14:19:53 +0200
- Cancel-lock: sha1:nAM7bI23s3QZTvwrMacgZXmGgvk=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: news <news@xxxxxxxxxxxxx>
I would like to configure zsh to support completion of make targets,
in the following setup. I have no idea how to go about this: Where to
start reading docs, for instance.
* Our Makefiles depend on the environment because they contain
"include $(FOO)" where FOO comes from the environment.
* I have a shell script, say "xmake", that
- searches for a project root directory amongst the ancestors of the
current directory, then
- changes into that directory (if found),
- then sources a file ENV from that directory (if it exists), and
finally
- invokes regular "make".
(The shell script also prints GNU-style "Entering directory `foo'"
and "Leaving directory `foo'" messages to enable Emacs to parse the
error messages.)
So how do I make a variant of "make" completion that does what the
shell script does before it invokes regular "make" completion?
Thanks,
Kai
Messages sorted by:
Reverse Date,
Date,
Thread,
Author