Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.46k stars 948 forks source link

Nerdfont icons not showing #1295

Closed fabeider closed 5 years ago

fabeider commented 5 years ago

Describe Your Issue

A lot of the icons are not showing

image

Have you tried to debug or fix it?

Setting the glyphs one by one, using nerd-fonts cheatsheet solved, by my understanding was that it should come by default on Nerd-Fonts

Environment Information

This information will help us understand your configuration.

Issues with Fonts & Icons

You may delete this section if your issue is not font / icon related.

Your font settings seem to be all right. If you still have issues, it is more likely to be a font issue than a Powerlevel9k related one.

romkatv commented 5 years ago

Which icon on the screenshot do you consider to be not showing?

fabeider commented 5 years ago

All OS icons for instance. My understanding was that it shows a text as fallback for not finding the icon. Home and folder icons are missing as well There are others, not on screen, but I'm not worried about then, since I'm not planning on putting them on my config

romkatv commented 5 years ago

Just making a guess. You are expecting POWERLEVEL9K_ANDROID_ICON in the output of get_icon_names to show as Android logo but you are seeing And instead. Is this correct?

If so, try running POWERLEVEL9K_MODE=nerdfont-complete zsh and then typing get_icon_names. If this displays the icons you want, you need to add POWERLEVEL9K_MODE=nerdfont-complete at the top of your ~/.zshrc. Or you could switch to Powerlevel10k, which allows you to define your options anywhere in the configuration file. It's also much faster.

fabeider commented 5 years ago

Running POWERLEVEL9K_MODE=nerdfont-complete zsh messed up all icons image

fabeider commented 5 years ago

My zshrc image

romkatv commented 5 years ago

Running POWERLEVEL9K_MODE=nerdfont-complete zsh messed up all icons

This means your font doesn't support these icons. If you want these icons in your prompt, you need to install a patched font from Nerd Fonts.

P.S.

Powerlevel10k is bundled with zprezto just like Powerlevel9k. You can switch by changing "powerlevel9k" in ~/.zpreztorc with "powerlevel10k". These themes are compatible, so you won't need to change any configuration. 10k is just faster. You can always switch back.

fabeider commented 5 years ago

Hm, somehow I got it to work. Apparently, it was the POWERLEVEL9K_MODE=nerdfont-complete placement. Changing to PowerLevel10k made it work Many thanks