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

2015-05-05 17:28:38 +08:00
 ileyar

这是我 Terminal 的显示:


这是主题原本的截图:

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

12850 次点击
所在节点    Ubuntu
10 条回复
Gem
2015-05-05 17:32:23 +08:00
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
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
2015-05-05 17:52:45 +08:00
装好Meslo LG S DZ Regular for Powerline.otf字体,将终端的字体设置为这个。要想去掉前面的(用户@主机)需要设置默认用户为当前用户(修改配置文件)。
ileyar
2015-05-05 18:47:32 +08:00
@jakes 谢啦,发现是我终端没设置字体。
配置文件也改好了~
xidianpanpei
2015-05-05 20:27:36 +08:00
感觉题主用的Bash,而下面那个用的是Zsh,所以显示有些问题。
ileyar
2015-05-05 21:00:11 +08:00
@xidianpanpei 我也是用的 zsh ,是字体问题啦~
BurningPP
2015-11-26 13:10:57 +08:00
请问如何修改配置文件, 不显示用户 @主机名
hagezhou
2017-08-29 18:01:44 +08:00
@jakes 你好,请问那个 @怎么去掉,修改什么配置文件呢
jakes
2017-08-29 18:51:18 +08:00
@hagezhou https://github.com/bhilburn/powerlevel9k#user
DEFAULT_USER 设置为当前用户就可以隐藏了

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

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

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

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

© 2021 V2EX