Open LuckyWindsck opened 1 year ago
antigen does support hook with the antigen-add-hook
function, and I did implement hooks with that function.
However, it seems like that the antigen-add-hook
function will only be load once due to the cache feature of antigen. When I open a new interactive shell, zsh will warn that "command not found: antigen-add-hook". So I've tried to disable the cache feature, but then other issue occurs. (See: Disabling cache causes issue with git plugin) Although there is workaround to fix it, it's not recommended by official guide due to performance issue.
Anyway, antigen is slow and it is not active now, so I decided to migrate to antidote.
Summary
I am going to migrate the zsh plugin manager I used from antigen to antidote.
Reasons for migration
antigen is in maintenance mode, no new features.
Why antidote?
antidote satisfied all following requirements I need.
pre
/post
hook.pre
hook allows me to set environment variables for some plugins before I use them.post
hook allows me to run a patch script to fix or enhance some plugins.Also, antidote has an official repo for example zsh config that uses antidote.
Why not other plugin manager?
I've compared all zsh plugin managers listed in zsh_unplugged that are acitve and fast.
compint
automatically.