From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23839 invoked by alias); 9 Apr 2016 13:49:33 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21436 Received: (qmail 24618 invoked from network); 9 Apr 2016 13:49:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-AuditID: cbfec7f4-f796c6d000001486-e4-57090866da6f Date: Sat, 09 Apr 2016 14:49:23 +0100 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: The zsh equivalent to Bash's "complete -W" to complete a command using only a list of words Message-id: <20160409144923.1e7bafe7@pwslap01u.europe.root.pri> In-reply-to: References: <20160409124553.783683a3@pwslap01u.europe.root.pri> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrALMWRmVeSWpSXmKPExsVy+t/xq7ppHJzhBnO/ilvsOLmS0YHRY9XB D0wBjFFcNimpOZllqUX6dglcGVMn/WEteMlUMevgf5YGxulMXYycHBICJhK/j8+GssUkLtxb z9bFyMUhJLCUUeLQpqmMEM40JonGOU+gMqcZJb61fmIDaRESOMMo8Wm2KojNIqAqMeneTlYQ m03AUGLqptmMILaIgKjE8hWb2bsYOTiEBbIk5lzTAQnzCthL/L+/DqycUyBY4v3xa1DzzzNK rOnZBpbgF9CXuPr3E9R59hIzr5xhhGgWlPgx+R4LiM0soCWxeVsTK4QtL7F5zVtmiNvUJW7c 3c0+gVF4FpKWWUhaZiFpWcDIvIpRNLU0uaA4KT3XUK84Mbe4NC9dLzk/dxMjJJy/7GBcfMzq EKMAB6MSD69ACEe4EGtiWXFl7iFGCQ5mJRHenayc4UK8KYmVValF+fFFpTmpxYcYpTlYlMR5 5+56HyIkkJ5YkpqdmlqQWgSTZeLglGpg1Iq+UzfBWilTZ2Ly0mn/tri7rXIR3FcQ9OuLtVr1 rw9rGJ5YMf7TjF195um+dvX9zO6z9726pzjn26QNv14aJfl7WIZ9747yeXn+fuClv59Wcxs/ 62GfJPxAOfFy/u09K8vVxMwK5nzsPPKo5NrxaT1BZb7dQo53Haxmn/ThWej65vAPL49CSyWW 4oxEQy3mouJEAInN55FjAgAA On Sat, 09 Apr 2016 16:40:52 +0300 Shlomi Fish wrote: > In addition to that I was told on IRC that I can do this: > > compdef "_values $description $val1 $val2 $val3 $val4..." Theme > > Where $description is a short description and $val1 $val2 are the values. Yes, it does work... you learn something new every day. pws