summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_php
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2014-08-11 17:39:42 +0200
committerAxel Beckert <abe@deuxchevaux.org>2014-08-11 17:39:42 +0200
commit382c26acfc62a56744ab9eb603efc56130764fd3 (patch)
tree1b7cb9d3e372481007fc4546e7d06ce5bb1bc104 /Completion/Unix/Command/_php
parent73508e345b4925f33b7f652aba9bd313169e5ac2 (diff)
parentf8ae47f29b766dc0330b19d7fdb35859d6aab930 (diff)
downloadzsh-382c26acfc62a56744ab9eb603efc56130764fd3.tar.gz
zsh-382c26acfc62a56744ab9eb603efc56130764fd3.zip
New upstream release candidate: Merge branch 'upstream' into debian
Diffstat (limited to 'Completion/Unix/Command/_php')
-rw-r--r--Completion/Unix/Command/_php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_php b/Completion/Unix/Command/_php
index bbb6a667b..5d7b84e28 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"