1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* misc/rb_optparse.zsh: fix typos.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2010-12-06 10:01:53 +00:00
parent 71f81f8136
commit 6c715d1de8
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Mon Dec 6 19:00:48 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* misc/rb_optparse.zsh: fix typos.
Mon Dec 6 18:59:04 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* NEWS: add new encodings.

4
misc/rb_optparse.zsh Normal file → Executable file
View file

@ -16,10 +16,10 @@ generate-complete-function/ruby/optparse ()
{
local cmpl="_${1:t}"
mkdir -p "${ZSH_COMPLETION_DIR-$HOME/.zsh.d/Completion}"
$1 --help=zshcomplete="${1:t}" > "${ZSH_COMPLETION_DIR-$HOME/.zsh.d/Completion}/$comp"
$1 --help=zshcomplete="${1:t}" > "${ZSH_COMPLETION_DIR-$HOME/.zsh.d/Completion}/$cmpl"
if [[ $(type -w "$cmpl") == "${cmpl}: function" ]]; then
unfunction "$cmpl"
autoload -U "$cmpl}"
autoload -U "$cmpl"
else
compinit "$cmpl"
fi