From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27422 invoked by alias); 1 Jun 2014 18:04:18 -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: 32653 Received: (qmail 1645 invoked from network); 1 Jun 2014 18:04:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140601110405.ZM29979@torch.brasslantern.com> Date: Sun, 01 Jun 2014 11:04:05 -0700 In-reply-to: <2490411401615311@web8g.yandex.ru> Comments: In reply to zabolotnyh stanislav "php completion" (Jun 1, 3:35pm) References: <2490411401615311@web8g.yandex.ru> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: php completion MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Jun 1, 3:35pm, zabolotnyh stanislav wrote: } } Add extension phar. Pardon me -- is this a request, or was there supposed to be a patch here but it got lost? Do you perhaps mean something like this? This makes php completion look for the suffixes style and complete any files having suffixes in that list, defaulting to (php|phar). diff --git a/Completion/Unix/Command/_php b/Completion/Unix/Command/_php index bbb6a66..5d7b84e 100644 --- a/Completion/Unix/Command/_php +++ b/Completion/Unix/Command/_php @@ -7,7 +7,10 @@ local curcontext="$curcontext" line state expl typeset -A opt_args local -a args -local exclusions php_files=':PHP file:_files -g "*.php(-.)"' +local exclusions php_suffix + +zstyle -s ":completion:$curcontext" suffixes php_suffix '|' || php_suffix='php|phar' +local php_files=":PHP file:_files -g '*.($php_suffix)(-.)'" if _pick_variant php5=PHP\ 5 php4 --version; then exclusions="-B --process-begin -R --process-code -F --process-file -E --process-end"