iTerm2 + zsh + oh-my-zsh + agnoster 主题遇到问题求解救

2015-04-20 12:46:55 +08:00
 refear99
一打开itrem 名字@PC后 就出现  ~ 的乱码
powerline也用了不好使,后来看到airline,clone到 ~/.vim/bundle 后就不知道怎么装了
是不是我理解错了?
19357 次点击
所在节点    程序员
11 条回复
Whisper
2015-04-20 12:50:48 +08:00
你需要xxx for powerline的字体
refear99
2015-04-20 13:42:31 +08:00
@Whisper 有呀 但是还是乱码
adspe
2015-04-20 13:44:23 +08:00
jxdwinter
2015-04-20 13:52:26 +08:00
http://v2ex.com/t/183789#reply9 我之前也问过类似的问题,就是你的字体不支持Powerline.
装一下 @adspe 那个字体库,换个字体.
ynyounuo
2015-04-20 14:00:41 +08:00
检查
Menu Bar ▸ iTerm ▸ Preference ▸ Profiles ▸ (Your Profile) ▸ Text ▸ Regular Font
是否选择了 Powerline 字体。

如果是
Menu Bar ▸ Profiles
选择一下那个 Profile。
refear99
2015-04-20 14:08:30 +08:00
@adspe 里的字体各种换还是不行。。。
其实主题都没事 就是agnoster主题
refear99
2015-04-20 14:14:04 +08:00
把这个主题文件恢复到d6a36b1 就好了~~
ivanlw
2015-04-20 16:57:20 +08:00
楼主可以尝试下我的repo: https://github.com/tolinwei/tube-vim
alphaqiu
2015-09-18 16:10:18 +08:00
https://gist.github.com/kevin-smets/8568070
需要安装字体。

Install a patched font

Meslo (the one in the screenshot ). Click "view raw" to download the font.

https://github.com/powerline/fonts/blob/master/Meslo/Meslo%20LG%20M%20DZ%20Regular%20for%20Powerline.otf

Others @ powerline fonts
Open the downloaded font and press "Install Font".

Set this font in iTerm2 (14px is my personal preference ) (iTerm -> preferences -> profiles -> text ).

Regular Font -> "Change Font"

Non-ASCII Font -> "Change Font"

Restart iTerm for all changes to take effect.
shaozhengmao
2016-08-10 10:00:18 +08:00
遇到了类似的问题...
zhangchioulin
2016-11-30 10:39:01 +08:00
@alphaqiu 谢谢, 解决了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/184928

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX