You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use Prezto modules just like any other plugin with the help of the path: annotation. However, you need to understand some of the internals of Prezto to use it effectively.
If you aren't using Prezto's main init file, you need to follow a few simple tips to get Prezto to work:
First, Prezto assumes there is a pmodload function for loading modules. You won't need that with antidote, but it still has to exist - so you will need to create an empty pmodload function yourself.
Second, Prezto won't source its .zpreztorc with its zstyle configurations. You will need to do that yourself, or add Prezto's zstyles to your .zshrc prior to loading it.
Third, you need to make sure you load the helper module first or any dependencies prior to other modules.
And finally, any functions directories will need to be autoloaded using antidote's kind:autoload annotation.
Prezto isn't treated differently than any other bundle in antidote, which means all of Prezto's interdependencies will be yours to manage, should you choose to leverage it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
You can use Prezto modules just like any other plugin with the help of the
path:
annotation. However, you need to understand some of the internals of Prezto to use it effectively.If you aren't using Prezto's main init file, you need to follow a few simple tips to get Prezto to work:
pmodload
function for loading modules. You won't need that with antidote, but it still has to exist - so you will need to create an emptypmodload
function yourself..zpreztorc
with itszstyle
configurations. You will need to do that yourself, or add Prezto'szstyles
to your.zshrc
prior to loading it.helper
module first or any dependencies prior to other modules.kind:autoload
annotation.Prezto isn't treated differently than any other bundle in antidote, which means all of Prezto's interdependencies will be yours to manage, should you choose to leverage it.
Beta Was this translation helpful? Give feedback.
All reactions