Powerline on Mac OS X not working as expected

∥☆過路亽.° 提交于 2019-12-01 18:24:52

--For all the noobs, with attention deficit, like my self.

I had the same issue, the solution was much more basic than than installing the fonts, but was not mentioned anywhere else: manually setting the fonts in your terminal (still need to make sure you have the fonts installed).

In iTerm2: iTerm > preferences > profiles > text > Regular font & non ASCII font.

In Terminal : Terminal > preferences > profiles > text > fonts

For me this vim config solved the problem:

g:Powerline_symbols = 'unicode'

In some cases it could also be needed:

set t_Co=256 

Install powerline-shell fonts and change in your iTerm2 the text's setting with Inconsolata font for exemple.

Since you are on iTerm 2, make sure you go into your settings and set both the regular font and the non-ascii font to powerline compatible fonts or the prompt separators and special characters will not display correctly as it is happening in your case.

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