Is it a good idea to call compinit from the global zshrc without warning?
Calling compinit multiple times during startup is not advised, and can lead to slowdowns (in my case, it takes zsh startup from ~40ms to ~1900ms). Presently the packaged zshrc calls compinit unless $skip_global_
I can see the use of calling compinit in the global zshrc - it's probably helpful to people who happen to be running zsh but have never customized it. But for people who are customizing, it's most common for them to configure the fpath (to enable additional completions) and call compinit in their zshrc, after this is already done.
As such, if it's desirable to run compinit in /etc/zsh/zshrc, I think it might be worthwhile to redefine compinit to print a message describing this issue and then calling through to compinit, since this has such an adverse impact on shell responsivity.
I'm not sure what the best way to bring this up with the package maintainer, though - on https:/
So I'd appreciate if someone could point me in the right direction to have a discussion on this topic.
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu zsh Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: