-
I just came across the eval annex, and am able to use it for slow initialization commands as described in the documentation. I also have a few commands which generate a completion file, which needs to be placed in fpath. Can I use the eval annex to generate these completions and add them to fpath on update? Or is there a better way to do this (as compared to manually generating the completion and pointing to it as a snippet)? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Hi @anihm136 👋
Technically, you can, but I don't think this is what you want, as the idea of the Correct me if I misunderstood something 👍
This is done automatically (zsh_plugin_standard#functions-directory) or manually passing the completion control for Zi (1.overview#the-completion-management, 2.commands#completions-management). 🚀
There are many ways to run command execution after cloning, updating, or loading, so
To be able to make a suggestion I need to know the exact steps you are trying to accomplish. If could provide step-by-step instructions, then I would be able to help sort this out 🪄 💡 |
Beta Was this translation helpful? Give feedback.
Hi @anihm136 👋
Technically, you can, but I don't think this is what you want, as the idea of the
eval
annex is to speed up shell startup time because of the slow commands initialization by providing a workaround, however, in your case, it seems that your "few commands which generate a completion" is not and should not be executed at startup, because the completions can be prepared at any point (before/after startup).Correct me if I misunderstood something 👍
This is done automatically (zsh_plugin_standard#functions-directory) or manually passing the completion control for Zi (1.overview#the-co…