1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-28 15:21:03 +01:00

19775: new completion for php

This commit is contained in:
Doug Kearns 2004-04-16 15:50:00 +00:00
parent 2617351d94
commit 9b32c65e49
4 changed files with 45 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2004-04-17 Doug Kearns <djkea2@mugca.its.monash.edu.au>
* 19775: Completion/Unix/Command/_php: new completion for php
* unposted: Completion/Unix/Commmand/_elinks: declare and initialise
return value parameter
2004-04-15 Peter Stephenson <pws@csr.com>
* see 19778 etc.: Doc/Makefile.in: remove change from 19735.

View file

@ -23,6 +23,6 @@ _chmod _du _ecasound
_getent _global _gpg _gphoto2 _less _lsof
_mt _mtr _nice _nmap
_perforce _printenv _python _raggle _rar _renice
_sablotron _screen _sed _subversion _tla
_sablotron _screen _sed _subversion _tla _php
_uniq _vorbis _vux _wiggle _xmlsoft
'

View file

@ -2,7 +2,7 @@
# ELinks 0.9.0 - Text WWW browser
local curcontext="$curcontext" state line
local curcontext="$curcontext" state line ret=1
typeset -A opt_args
_arguments -C -A '-*' \

View file

@ -0,0 +1,37 @@
#compdef php
# PHP 4.3.6RC2 (cli) (built: Apr 9 2004 00:14:04)
local curcontext="$curcontext" line state
typeset -A opt_args
_arguments -S \
{-a,--interactive}'[run interactively]' \
{-c,--php-ini}'[look for php.ini file in the specified directory]:directory:_files -/' \
{-n,--no-php-ini}'[no php.ini file will be used]' \
{-d,--define}"[define INI entry]:configuration directive:->ini" \
{-e,--profile-info}'[generate extended information for debugger/profiler]' \
'(- *)'{-h,--help}'[display help information]' \
'(- *)'{-i,--info}'[PHP information]' \
'(-)'{-l,--syntax-check}'[syntax check only (lint)]' \
'(- *)'{-m,--modules}'[show compiled in modules]' \
'(1 -l --syntax-check -s --syntax-highlight -w --strip)'{-r,--run}'[run the specified PHP code without using script tags <?..?>]:PHP code:'\
'(-)'{-s,--syntax-highlight}'[display colour syntax highlighted source]' \
'(- *)'{-v,--version}'[display version information]' \
'(-)'{-w,--strip}'[display source with stripped comments and whitespace]' \
{-z,--zend-extension}'[load specified Zend extension]:extension file:_files' \
'(-)1:PHP file:_files -g "*.php(-.)"' \
'*:script argument:_files' && return
case $state in
ini)
if compset -P '*='; then
_default
else
_message -e configuration-directives 'configuration directive'
fi
;;
esac
return 1