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

Re: [Q] user-defined completion



Didier Verna wrote:

> 	Hi!
> 
> I'd like to write a function for special command line completion, but that is
> aware of the program whose command line we're completing. After reading the
> doc, I see that user-defined functions get 2 arguments: pre and postfix. Is
> there a way to make such functions aware of the program name ? Any ideas ?
> Thanks. 
> 

See the read builtin (options `-c', `-l', and `-n', and probably `-A').


Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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