withfig / plugins

Plugin store for zsh, bash & fish.
https://fig.io
MIT License
166 stars 49 forks source link

Add zsh prescript to gradle for autoloading compinit #30

Open ibayramli opened 2 years ago

ibayramli commented 2 years ago

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Bug fix

What is the current behavior? (You can also link to an open issue here)

You get command not found: compdef when downloading the plugin.

What is the new behavior (if this is a feature change)?

It works now.

Additional info:

Solved by adding this to the index.ts:

autoload -Uz compinit
compinit