From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9904 invoked by alias); 9 Apr 2016 14:48:06 -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: 21437 Received: (qmail 17790 invoked from network); 9 Apr 2016 14:48:05 -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,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=ILZTPn2ViM/TZ2wDzxzYaRNPAw255EI4rbrH9VwvViI=; b=ka+2c4xC+FGNBKKp0Kn70wbe3Ko8TrDkdqo+JJQboIywJ9xi+f33zlHDINmQZxxCtZ ysqXUHOzBAMOnFQ0uxvmIV3WZmQ41hhM1LFZPGgLGnfEvq04pM0d0pxV0rppWERPqwZz 9w0P7Gj4XwsUqpWi0QuLZ5ElRg+tlSmT/GYdJMXufWaLEXffVVEes5Xs8kwIBD7fP7H4 VAuBMOmNZQokgGwyYfzDhwUz60bOKGL5wNL3DDnQFQ1kj2g05CxDbI555TO6KR4bXEll pYWol7qp9rh1YG/OHNxt/Aqc87SlSSJxncUEDO/mUQyHZivCL1DRq1jo0MI0Yo1ZirO4 EHhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=ILZTPn2ViM/TZ2wDzxzYaRNPAw255EI4rbrH9VwvViI=; b=aAym6vp20rEp6ZXiMORsMNYvMt38rUSPARsNxKvYBxyhKHP2MF93UTDo37Yr13Nhvu EgWBVs5eky5F9F9r2pJntNlUL+bwdehgyIFm73X0zetVuaw6BXv0/hMu8aX0arEcfLrs ZEbGLwe60tezYTAWBPL9t91DgDAMkwIjW9VDbaPzzRQiLOnVhQKmKQQLrUQwXLF8Mbli Y0R4gwCRiCguPB5Fm/pp1ENH/xs9eQs0NlpIGxaxpmFAeNIMADQ1aUPGyeGTljeT2BG7 edpaF50bk5NbpQaoc8Ipv/dueONRjxA7T53ori2oUxZu1jTBKff1ZO7WcDZw7JQ7mRsa W7+g== X-Gm-Message-State: AD7BkJKCSHa41hiuifd4LTnxXIDGhZpIIHjLoBy4UfSwECNJfY9kfFSqV8VQaim+/yJ0eg== X-Received: by 10.98.70.67 with SMTP id t64mr20353162pfa.110.1460213280911; Sat, 09 Apr 2016 07:48:00 -0700 (PDT) From: Bart Schaefer Message-Id: <160409074905.ZM23330@torch.brasslantern.com> Date: Sat, 9 Apr 2016 07:49:05 -0700 In-Reply-To: <20160409144923.1e7bafe7@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: The zsh equivalent to Bash's "complete -W" to complete a command using only a list of words" (Apr 9, 2:49pm) References: <20160409124553.783683a3@pwslap01u.europe.root.pri> <20160409144923.1e7bafe7@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) 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 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 9, 2:49pm, Peter Stephenson wrote: } } 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. And of course to literally satisfy the "I want a shell command/built-in for this" request, there's always the venerable compctl -X $description -k "($val1 $val2 $val3 $val4...)" Theme