Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] _php: remove _arguments's -A, which interferes with _normal



reported on IRC by a user with a completer for a php script but also
desires ''php script -<tab>'' to use his completer.

''
php ls -<tab> # => Completing no more arguments
''

post patch, you should see ls' options.
---
 Completion/Unix/Command/_php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Completion/Unix/Command/_php b/Completion/Unix/Command/_php
index 4edcd1e..0e84003 100644
--- a/Completion/Unix/Command/_php
+++ b/Completion/Unix/Command/_php
@@ -43,7 +43,7 @@ args+=(
   '(-)*::script argument: _normal'
 )
 
-_arguments -C -s -S -A "-*" "$args[@]" && return 0
+_arguments -C -s -S "$args[@]" && return 0
 
 case $state in
   directive)
-- 
2.6.2



Messages sorted by: Reverse Date, Date, Thread, Author