Skip to content

About completions best practice #109

Answered by pschmitt
Tirke asked this question in Q&A
Discussion options

You must be logged in to vote

Handling fpath is one of the main features of zinit. You can still mess around with it, sure - but I wouldn't advise to do so ;)

To get your custom completions to work I'd just add something like zinit creinstall -q /opt/homebrew/share/zsh/site-functions (provided this is the path where brew stores these comps) to either a custom dummy (ie zdharma-continuum/null) plugin or directly to the atinitof f-sy-h - where you are doing your zicompinit (not a good idea since this will run every time you spawn a shell)

What you can also do with zinit is have it "manage" brew plugins ie. setup a null plugin which leverages the atclone, atpull and atdelete ices, where you would brew install $your_apps, b…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@paw-lu
Comment options

Answer selected by Tirke
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants