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

[PATCH] _ruby: do not limit scripts to *.rb glob



Ruby scripts doesn't have to have .rb extension, I may be simple
executable script with /usr/bin/ruby shebang.  Running these scripts
with ruby command may be the only way to specify additional arguments
to interpreter itself (like -I or -r).

Signed-off-by: Alexey I. Froloff <raorn@xxxxxxxxxxxx>
---
 Completion/Unix/Command/_ruby |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Completion/Unix/Command/_ruby b/Completion/Unix/Command/_ruby
index aef186c..03f4e60 100644
--- a/Completion/Unix/Command/_ruby
+++ b/Completion/Unix/Command/_ruby
@@ -8,7 +8,7 @@ typeset -A opt_args
 local -a args opts
 
 args=(
-  '(-)1:script file:_files -g "*.rb(-.)"'
+  '(-)1:script file:_files'
   '*::script argument: _normal'
 )
 
-- 
1.6.5.3



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