зеркало из https://github.com/github/ruby.git
* 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:
Родитель
71f81f8136
Коммит
6c715d1de8
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче