Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instant prompt works but it takes time to have everything ready #2291

Closed
Breigner01 opened this issue May 4, 2023 · 4 comments
Closed

Instant prompt works but it takes time to have everything ready #2291

Breigner01 opened this issue May 4, 2023 · 4 comments

Comments

@Breigner01
Copy link

So, I have no problems with instant prompt it works fine.
I just realized fairly recently that it takes time for everything to be ready, it takes a couple seconds to have auto complete and the rest of the prompt.
I don't think that it's related but I also see that the logo next to the battery percentage cannot be rendered and I just have the following:
image
I don't think it's related but since it appeared at the same time as it started taking time for everything to start, I cannot exclude the possibility that these are related or are caused by the same issue.

@romkatv
Copy link
Owner

romkatv commented May 4, 2023

For the icon, see https://github.com/romkatv/powerlevel10k#icons-glyphs-or-powerline-symbols-dont-render.

You can figure out what takes a lot of time to load by disabling parts of your .zshrc one by one. Common culprits include nvm, pyenv and various eval calls.

@h0adp0re
Copy link

h0adp0re commented May 4, 2023

Edit: @romkatv is a smart man and has already accounted for the breaking change. Running p10k configure will generate a prompt that's tailored to the font you're using. Thanks!


The missing icon is caused by a major upgrade to Nerd Fonts. There is a translation table available here: ryanoasis/nerd-fonts#1059 (comment). But the changes must be done in p10k source because the icons are generated there.

As a temporary measure, we as users could define icon overrides in our .p10k.zsh for broken icons:

# typeset -g POWERLEVEL9K_{element_name}_VISUAL_IDENTIFIER_EXPANSION='⭐'
# For example package.json element:
typeset -g POWERLEVEL9K_PACKAGE_VISUAL_IDENTIFIER_EXPANSION=''

Icons can be found from https://www.nerdfonts.com/cheat-sheet.

@romkatv
Copy link
Owner

romkatv commented May 4, 2023

The missing icon is caused by a major upgrade to Nerd Fonts.

Have you changed your terminal font? If so, run p10k configure.

@romkatv
Copy link
Owner

romkatv commented May 4, 2023

Edit: make sure you are on the latest version of powerlevel10k before running p10k configure.

@romkatv romkatv closed this as completed May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants