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

关于 Powerline,我的显示怎么是这样?

  •  
  •   ileyar · 2015-05-05 17:28:38 +08:00 · 12849 次点击
    这是一个创建于 3281 天前的主题,其中的信息可能已经有所发展或是发生改变。

    这是我 Terminal 的显示:


    这是主题原本的截图:

    本应该是树枝的我这里却显示那个什么即鸟。。。

    10 条回复    2017-08-29 18:51:18 +08:00
    Gem
        1
    Gem  
       2015-05-05 17:32:23 +08:00
    hahastudio
        2
    hahastudio  
       2015-05-05 17:44:45 +08:00
    呃,我记得需要一个打过补丁的 powerline font 才能显示这些 Version Control Branch
    忘记在哪里下了,可能在这些位置里找到:
    https://powerline.readthedocs.org/en/latest/installation/osx.html
    https://apw-bash-settings.readthedocs.org/en/latest/fontpatching.html
    https://superuser.com/questions/762345/powerline-patched-fonts-on-osx-10-9-3-iterm2-chrome
    ileyar
        3
    ileyar  
    OP
       2015-05-05 17:48:26 +08:00
    @Gem 有的。
    ```
    git clone https://github.com/powerline/fonts.git ~/powerline-fonts
    ```

    ```
    source ~/powerline-fonts/install.sh
    ```
    jakes
        4
    jakes  
       2015-05-05 17:52:45 +08:00 via Android
    装好Meslo LG S DZ Regular for Powerline.otf字体,将终端的字体设置为这个。要想去掉前面的(用户@主机)需要设置默认用户为当前用户(修改配置文件)。
    ileyar
        5
    ileyar  
    OP
       2015-05-05 18:47:32 +08:00
    @jakes 谢啦,发现是我终端没设置字体。
    配置文件也改好了~
    xidianpanpei
        6
    xidianpanpei  
       2015-05-05 20:27:36 +08:00
    感觉题主用的Bash,而下面那个用的是Zsh,所以显示有些问题。
    ileyar
        7
    ileyar  
    OP
       2015-05-05 21:00:11 +08:00
    @xidianpanpei 我也是用的 zsh ,是字体问题啦~
    BurningPP
        8
    BurningPP  
       2015-11-26 13:10:57 +08:00
    请问如何修改配置文件, 不显示用户 @主机名
    hagezhou
        9
    hagezhou  
       2017-08-29 18:01:44 +08:00
    @jakes 你好,请问那个 @怎么去掉,修改什么配置文件呢
    jakes
        10
    jakes  
       2017-08-29 18:51:18 +08:00
    @hagezhou https://github.com/bhilburn/powerlevel9k#user
    DEFAULT_USER 设置为当前用户就可以隐藏了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   948 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:06 · PVG 05:06 · LAX 14:06 · JFK 17:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.