Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Adding a completion file has created a delay in ZSH startup time



Hello,

I'm trying to write my first completion file.

I've added ~/.zsh/completions to fpath:

fpath=(~/.zsh/autoload ~/.zsh/completions $fpath)

Then I created file ~/.zsh/completions/_myapp with the following content:

#compdef myapp
compadd start restart stop

However, this seemingly simple change has added 1 or 2 seconds to ZSH start time. The start used to be almost immediate. Now there is an annoying delay.

What is the reason?

Best regards,
Peter



Messages sorted by: Reverse Date, Date, Thread, Author