V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
refear99
V2EX  ›  程序员

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

  •  
  •   refear99 · 2015-04-20 12:46:55 +08:00 · 19296 次点击
    这是一个创建于 3265 天前的主题,其中的信息可能已经有所发展或是发生改变。
    一打开itrem 名字@PC后 就出现  ~ 的乱码
    powerline也用了不好使,后来看到airline,clone到 ~/.vim/bundle 后就不知道怎么装了
    是不是我理解错了?
    11 条回复    2016-11-30 10:39:01 +08:00
    Whisper
        1
    Whisper  
       2015-04-20 12:50:48 +08:00
    你需要xxx for powerline的字体
    refear99
        2
    refear99  
    OP
       2015-04-20 13:42:31 +08:00
    @Whisper 有呀 但是还是乱码
    adspe
        3
    adspe  
       2015-04-20 13:44:23 +08:00
    jxdwinter
        4
    jxdwinter  
       2015-04-20 13:52:26 +08:00
    http://v2ex.com/t/183789#reply9 我之前也问过类似的问题,就是你的字体不支持Powerline.
    装一下 @adspe 那个字体库,换个字体.
    ynyounuo
        5
    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
        6
    refear99  
    OP
       2015-04-20 14:08:30 +08:00
    @adspe 里的字体各种换还是不行。。。
    其实主题都没事 就是agnoster主题
    refear99
        7
    refear99  
    OP
       2015-04-20 14:14:04 +08:00   ❤️ 1
    把这个主题文件恢复到d6a36b1 就好了~~
    ivanlw
        8
    ivanlw  
       2015-04-20 16:57:20 +08:00
    楼主可以尝试下我的repo: https://github.com/tolinwei/tube-vim
    alphaqiu
        9
    alphaqiu  
       2015-09-18 16:10:18 +08:00   ❤️ 1
    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
        10
    shaozhengmao  
       2016-08-10 10:00:18 +08:00
    遇到了类似的问题...
    zhangchioulin
        11
    zhangchioulin  
       2016-11-30 10:39:01 +08:00
    @alphaqiu 谢谢, 解决了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3222 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 14:23 · PVG 22:23 · LAX 07:23 · JFK 10:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.