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

How to do completion with read?



Is there a way to use completion mechanism when prompt user for input
in zsh function/scripts?  For example,

echo -n "Enter choice: "
read -C '-k "(orange apple banana)"' choice

The example about use imaginary option '-C' which tell zsh to pass the
next argument as compctl argument.

Any help will be appreciated...



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