From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11412 invoked by alias); 30 Sep 2015 16:04:38 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36719 Received: (qmail 390 invoked from network); 30 Sep 2015 16:04:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) 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.0 X-Biglobe-Sender: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [PATCH] complete two or more options for zsh From: "Jun T." In-Reply-To: <150925100303.ZM3552@torch.brasslantern.com> Date: Thu, 1 Oct 2015 01:03:18 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <5AB853BF-EBC6-4F61-BDBC-66604DCE926B@kba.biglobe.ne.jp> References: <150922223902.ZM30528@torch.brasslantern.com> <91D49604-A261-46A4-95BC-624420629B84@kba.biglobe.ne.jp> <150925100303.ZM3552@torch.brasslantern.com> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.1878.6) X-Biglobe-Spnum: 55965 A few additions to _zsh: support -s and -b, and offer files for script args. diff --git a/Completion/Unix/Command/_zsh b/Completion/Unix/Command/_zsh index 3b6d7ad..d432aa9 100644 --- a/Completion/Unix/Command/_zsh +++ b/Completion/Unix/Command/_zsh @@ -3,6 +3,8 @@ _arguments -S -s : \ '*-o+[set named option]:option:_options' \ '*+o+[unset named option]:option:_options' \ + '(1 -s --shinstdin)'{-s,--shinstdin}'[read commands from standard = input]' \ + '(-)-b[end of option processing, like --]' \ '(1 -)-c[run a command]:command:_cmdstring' \ '(-)1:script file:_files' \ - '*:command arguments' -- + '*:script arguments:_files' --