Eyal Peleg
Eyal Peleg

Reputation: 87

ITerm2 + Mac Catalina + Zsh + Oh My Zsh + Powerline10K -> not showing fonts properly

I've just upgraded to zsh using the following tools:

This is the problem I'm experiencing: enter image description here

I am using the following ITerm2 configuration: enter image description here

BTW I've already tried to install the Powerline fonts

Upvotes: 4

Views: 3703

Answers (2)

Roman Perepelitsa
Roman Perepelitsa

Reputation: 2688

What you've highlighted in the screenshot is prompt. Zsh prompt is controlled by themes. The theme you are using is apparently Powerlevel10k (your questions says "Powerline10K" but that's almost certainly a mistake).

So you'd like to see powerline glyphs in Powerlevel10k prompt in iTerm2. To do that you need to type p10k configure. It'll immediately ask whether you want to installed the recommended font. Say "yes", then restart iTerm2 when prompted, and then again run p10k configure. This time it won't offer to install a font and will present you with the choice of prompt styles, some of which use powerline glyphs.

Upvotes: 6

NewPlayerX
NewPlayerX

Reputation: 47

Yeah, I have the same font installed as you and it didn't work. Looks like that font only supports powerline in vim in my experience.

Based on the p10k docs, the nerd font will support all style options. If you still like to use source code pro, you can download nerd version here.

I also fount out that JetBrains Mono is also a nice font for develop because it is so easy to read. You can use with Nerd Font like this:

enter image description here

Upvotes: 1

Related Questions