Installing powerline fonts for zsh + Prezto theme

点点圈 提交于 2019-12-02 21:08:04
haiLong

It is all about the Powerline symbols.

To get the Powerline symbols working as mike@Mikes-Laptop.local has:

  1. Download a Powerline font. A good font for downloading can be found at https://github.com/powerline/fonts

  2. Install it by running ./install.sh.

  3. Change the font in your Terminal preferences to use the new Powerline font.

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

The prior instructions were intended for Mac OS version 10.11 with Terminal, but may work similar for other setups.

On Windows - just * download some Powerline font like: https://github.com/abertsch/Menlo-for-Powerline/raw/master/Menlo%20for%20Powerline.ttf
* Install it by clicking the file twice
* Choose the new font in properties
That's it!

Add on, I am using Hyper and zsh and encountered same problem, solved by editing

fontFamily: 'Menlo, "DejaVu Sans Mono for Powerline", Consolas, "Lucida Console", monospace',

Just adding the font for powerline into fontFamily.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!