• 请不要在回答技术问题时复制粘贴 AI 生成的内容
refear99
V2EX  ›  程序员

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

  •  
  •   refear99 · Apr 20, 2015 · 20354 views
    This topic created in 4053 days ago, the information mentioned may be changed or developed.
    一打开itrem 名字@PC后 就出现  ~ 的乱码
    powerline也用了不好使,后来看到airline,clone到 ~/.vim/bundle 后就不知道怎么装了
    是不是我理解错了?
    11 replies    2016-11-30 10:39:01 +08:00
    Whisper
        1
    Whisper  
       Apr 20, 2015
    你需要xxx for powerline的字体
    refear99
        2
    refear99  
    OP
       Apr 20, 2015
    @Whisper 有呀 但是还是乱码
    adspe
        3
    adspe  
       Apr 20, 2015
    jxdwinter
        4
    jxdwinter  
       Apr 20, 2015
    http://sunp.eu.org/t/183789#reply9 我之前也问过类似的问题,就是你的字体不支持Powerline.
    装一下 @adspe 那个字体库,换个字体.
    ynyounuo
        5
    ynyounuo  
       Apr 20, 2015
    检查
    Menu Bar ▸ iTerm ▸ Preference ▸ Profiles ▸ (Your Profile) ▸ Text ▸ Regular Font
    是否选择了 Powerline 字体。

    如果是
    Menu Bar ▸ Profiles
    选择一下那个 Profile。
    refear99
        6
    refear99  
    OP
       Apr 20, 2015
    @adspe 里的字体各种换还是不行。。。
    其实主题都没事 就是agnoster主题
    refear99
        7
    refear99  
    OP
       Apr 20, 2015   ❤️ 1
    把这个主题文件恢复到d6a36b1 就好了~~
    ivanlw
        8
    ivanlw  
       Apr 20, 2015
    楼主可以尝试下我的repo: https://github.com/tolinwei/tube-vim
    alphaqiu
        9
    alphaqiu  
       Sep 18, 2015   ❤️ 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  
       Aug 10, 2016
    遇到了类似的问题...
    zhangchioulin
        11
    zhangchioulin  
       Nov 30, 2016
    @alphaqiu 谢谢, 解决了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5855 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 75ms · UTC 02:38 · PVG 10:38 · LAX 19:38 · JFK 22:38
    ♥ Do have faith in what you're doing.