exercism / exercism/cli

zsh completion requires sourcing and can't get autoloaded easily

Open
#764 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.4k
Forks
363
Avg merge
6d 13h
Merged PRs (30d)
2

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.