summaryrefslogtreecommitdiff
path: root/misc/rb_optparse.zsh
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]misc/rb_optparse.zsh4
1 files changed, 2 insertions, 2 deletions
@@ -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"
if [[ $(type -w "$cmpl") == "${cmpl}: function" ]]; then
unfunction "$cmpl"
- autoload -U "$cmpl}"
else
compinit "$cmpl"
fi