From d298593f56429d97808a15370f0b91aea0ff6bc5 Mon Sep 17 00:00:00 2001 From: kazu Date: Sun, 26 Dec 2010 23:30:38 +0000 Subject: [PATCH] * misc/rb_optparse.zsh: add compdef for generator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ misc/rb_optparse.zsh | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index eced2dc54e..d2c4a0ae4f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Dec 27 07:38:07 2010 Kazuhiro NISHIYAMA + + * misc/rb_optparse.zsh: add compdef for generator. + Mon Dec 27 07:32:07 2010 Kazuhiro NISHIYAMA * lib/optparse.rb (OptionParser#compsys): escape brackets too. diff --git a/misc/rb_optparse.zsh b/misc/rb_optparse.zsh index 46662cc88a..d53170c5f7 100755 --- a/misc/rb_optparse.zsh +++ b/misc/rb_optparse.zsh @@ -31,6 +31,8 @@ generate-complete-function/ruby/optparse () fi } +compdef _command generate-complete-function/ruby/optparse + for cmd in "$@"; do generate-complete-function/ruby/optparse "$cmd" done