Skip to content

Where should i put the auto completion files for different apps ? #163

Closed Answered by mattmc3
xd003 asked this question in Q&A
Discussion options

You must be logged in to vote

I just wanted to ask where exactly should i place all these files.

Wait - don't manually move files. That's not how fpath works. You don't drop files in a special fpath location - instead, you modify the fpath array and add the directories you need. And antidote can do that for you with the kind:fpath notation.

The way Zsh's compinit completions work is your fpath array has to be fully built prior to running compinit. That's not an antidote thing, just how Zsh works. So, with that in mind, you want to load your plugins prior to running compinit where possible.

# contents of ${ZDOTDIR:-$HOME}/.zsh_plugins.txt

# regular plugins get added to fpath automatically, in addition to being sourced

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xd003
Comment options

Answer selected by xd003
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants