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

Re: Bug#527369: zsh: make perl completion recognize .t files



On Thu, May 07, 2009 at 11:55:29AM +0200, Patrick Schoenfeld wrote:
> the attached patch lets the perl completion recognize .t files (tests).
> Please consider inclusion.

Thanks.

Index: Completion/Unix/Command/_perl
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_perl,v
retrieving revision 1.9
diff -u -r1.9 _perl
--- Completion/Unix/Command/_perl	15 Oct 2008 06:17:39 -0000	1.9
+++ Completion/Unix/Command/_perl	22 May 2009 01:55:38 -0000
@@ -31,7 +31,7 @@
     "-V-[print perl configuration information]:configuration keys:_perl_config_vars" \
     '-w[turn warnings on for compilation of your script. Recommended]' \
     '-x-[strip off text before #!perl line and perhaps cd to directory]:directory to cd to:_files -/' \
-    '1:Perl script:_files -/ -g "*.(p[ml]|PL)(-.)"' \
+    '1:Perl script:_files -/ -g "*.(p[ml]|PL|t)(-.)"' \
     '*::args: _normal' 
 }



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