Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: completions for make targets?



"Raju K. V." <rajukv@xxxxxxxxxxxxxxxx> writes:

> I am a zsh newbie still struggling to understand the power of
> compctl. I have one requirement. How can I use compctl to complate
> make targets?

Try this (I think it comes from the snandard compctl example file):

compctl -s "\$(awk '/^[a-zA-Z0-9][^ 	]+:/ {print \$1}' FS=: [mM]akefile)" -x \
	'c[-1,-f]' -f -- make gmake pmake



Messages sorted by: Reverse Date, Date, Thread, Author