I build a huge zsh completion file for my program using clap_complete
. To activate it, I added in my ~/.zshrc
the lines:
fpath+=(~/.zsh/completion) # adding my completion directory to the fpath
compinit # running completion
However, the compinit
line doubles the load time of each new terminal (opened with Ctrl+Shift+T
for instance).
Is there a way to somehow cache the compinit
call so it's only run once?