V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ileyar
V2EX  ›  Ubuntu

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

  •  
  •   ileyar · May 5, 2015 · 13560 views
    This topic created in 4011 days ago, the information mentioned may be changed or developed.

    这是我 Terminal 的显示:


    这是主题原本的截图:

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

    10 replies    2017-08-29 18:51:18 +08:00
    Gem
        1
    Gem  
       May 5, 2015
    hahastudio
        2
    hahastudio  
       May 5, 2015
    呃,我记得需要一个打过补丁的 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
       May 5, 2015
    @Gem 有的。
    ```
    git clone https://github.com/powerline/fonts.git ~/powerline-fonts
    ```

    ```
    source ~/powerline-fonts/install.sh
    ```
    jakes
        4
    jakes  
       May 5, 2015 via Android
    装好Meslo LG S DZ Regular for Powerline.otf字体,将终端的字体设置为这个。要想去掉前面的(用户@主机)需要设置默认用户为当前用户(修改配置文件)。
    ileyar
        5
    ileyar  
    OP
       May 5, 2015
    @jakes 谢啦,发现是我终端没设置字体。
    配置文件也改好了~
    xidianpanpei
        6
    xidianpanpei  
       May 5, 2015
    感觉题主用的Bash,而下面那个用的是Zsh,所以显示有些问题。
    ileyar
        7
    ileyar  
    OP
       May 5, 2015
    @xidianpanpei 我也是用的 zsh ,是字体问题啦~
    BurningPP
        8
    BurningPP  
       Nov 26, 2015
    请问如何修改配置文件, 不显示用户 @主机名
    hagezhou
        9
    hagezhou  
       Aug 29, 2017
    @jakes 你好,请问那个 @怎么去掉,修改什么配置文件呢
    jakes
        10
    jakes  
       Aug 29, 2017
    @hagezhou https://github.com/bhilburn/powerlevel9k#user
    DEFAULT_USER 设置为当前用户就可以隐藏了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5879 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 02:48 · PVG 10:48 · LAX 19:48 · JFK 22:48
    ♥ Do have faith in what you're doing.