exercism / exercism/cli

zsh completion requires sourcing and can't get autoloaded easily

未关闭
#764 0 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
1.4k
派生
363
平均合并
6 天 13 小时
30 天内合并 PR
2

描述

The current version of the zsh completion does not support zsh autoloading.

This can be repaired by removing the wrapping function (removing first and last line basically) and naming it `_exercism`. One can simply throw it into the `$fpath` and add `autoload _exercism` to the `.zshrc`.

Then zsh would only try to load the function if one tries to complete an argument to exercism.

Can we change the zsh completion to be more autoload friendly?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。