Skip to content

Commit

Permalink
* misc/rb_optparse.zsh: fix typos.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
znz committed Dec 6, 2010
1 parent 71f81f8 commit 6c715d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Mon Dec 6 19:00:48 2010 Kazuhiro NISHIYAMA <[email protected]>

* misc/rb_optparse.zsh: fix typos.

Mon Dec 6 18:59:04 2010 Kazuhiro NISHIYAMA <[email protected]>

* NEWS: add new encodings.
Expand Down
4 changes: 2 additions & 2 deletions misc/rb_optparse.zsh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c715d1

Please sign in to comment.