Skip to content

First prompt not working for Zinit lazy load #204

Answered by marlonrichert
weilbith asked this question in Q&A
Discussion options

You must be logged in to vote

What you're seeing is a side-effect of using zinit wait: zsh-autocomplete adds several hooks that run before the first prompt. However, zinit wait delays zsh-autocomplete initialization until after the first prompt, meaning it won't get to add its hooks until after the first prompt. This causes the hooks to not trigger until the next prompt. There's nothing zsh-autocomplete can do about that. You'll just have to use it without zinit wait.

However, there's a much easier way to reduce your Zsh startup time: Just use Znap as your plugin manager and use its znap prompt command to make your prompt appear instantly. 😁

PS: zstyle ':autocomplete:(slash|space):*' magic 'off' doesn't do anything an…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by marlonrichert
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
documentation Improvements or additions to documentation
2 participants
Converted from issue

This discussion was converted from issue #115 on March 08, 2021 21:06.