about summary refs log tree commit diff
path: root/Completion/Unix/Command/_php
diff options
context:
space:
mode:
authorDoug Kearns <dkearns@users.sourceforge.net>2004-04-16 15:50:00 +0000
committerDoug Kearns <dkearns@users.sourceforge.net>2004-04-16 15:50:00 +0000
commit9b32c65e4922d6bcc3e886b0f869986ca02e91dc (patch)
tree36b500e65b5c3f5997d4d13af8e72fce245ca9d4 /Completion/Unix/Command/_php
parent2617351d943352ab94da1a2edd1229387d1f94fb (diff)
downloadzsh-9b32c65e4922d6bcc3e886b0f869986ca02e91dc.tar.gz
zsh-9b32c65e4922d6bcc3e886b0f869986ca02e91dc.tar.xz
zsh-9b32c65e4922d6bcc3e886b0f869986ca02e91dc.zip
19775: new completion for php
Diffstat (limited to 'Completion/Unix/Command/_php')
-rw-r--r--Completion/Unix/Command/_php37
1 files changed, 37 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_php b/Completion/Unix/Command/_php
new file mode 100644
index 000000000..e2fa5d174
--- /dev/null
+++ b/Completion/Unix/Command/_php
@@ -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
+