Install Powerline fonts for the zsh + Prezto theme

I am currently using Zsh + Prezto for my script shell configuration. I used the sorin theme, but a little dissatisfied with it. I would like to upgrade to paradox !

It is assumed that it looks like this:

Blockquote

I have problems with this. When I switch to a theme, the characters cannot load, so I get a prompt that looks like this:

Blockquote

Notice the square question marks where the edge border for the background or the branch symbol for the git branch should be. (Take a look at the paradox preview here ).

I saw here that I have to install Powerline patched fonts to load characters correctly. However, since I am somewhat unfamiliar with this process, I would really like to install it on my OS X.

In the documentation , I have to install via pip . When I run pip install --user powerline-status , my tooltip still cannot display the characters as they should look.

What else should I do after starting the installation to correctly display this prompt?

I am using a MacBook Pro with El Capitan


Update. I installed Powerline fonts and ran exec.sh, changed my terminal's preferred font and tested a new type of tooltip. Characters are now displayed, however, they are raised from the base line of the prompt line, for example:

enter image description here

Note that the character "\ ue0b0" is raised from the bottom of the line.

+6
source share
2 answers

It's all about Powerline characters.

To get Powerline characters that work like mike@Mikes-Laptop.local , there are:

  • Download the Powerline font. A good download font can be found at https://github.com/powerline/fonts

  • Install it by running ./install.sh .

  • Change the font in your terminal settings to use the new Powerline font.

enter image description here

  1. Test! To check the glyphs in the terminal: echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"

enter image description here

The previous instructions were for Mac OS version 10.11 with a terminal, but may work similarly for other settings.

+15
source

On Windows - just * download some Powerline font, for example: https://github.com/abertsch/Menlo-for-Powerline/raw/master/Menlo%20for%20Powerline.ttf
* Install it by double-clicking the file

* Select a new font in the properties of What is it!

+1
source

All Articles