oh-my-zsh agnoster 主题的显示问题
Display issue with oh-my-zsh agnoster theme
我在 zshrc 文件中添加了这样的主题:
ZSH_THEME="agnoster"
但它最终看起来像这样:
我正在使用 Ubuntu Gnome 16.04。我错过了什么?
如 agnoster-github-page 所述,您需要
- 电力线修补字体
- 包含所需字符的字体
您当前使用的字体似乎缺少 \ue0b0
字符。它看起来与它应该看起来的样子不同(一个全行高一个字符宽的直角三角形)
我会研究其中的一些字体:
- Patched fonts for Powerline users
- 作为粉丝不使用补丁字体我更喜欢Hack and FiraCode
我在使用 urxvt 的 Debian 9 上遇到了这个问题。
修复了将字体更改为 Hack 的问题。感谢@AnimiVulpis 的回答。
在 Debian 上安装 Hack 字体:
apt-get install fonts-hack-ttf
在 ~/.Xresources 上配置:
URxvt.font: xft:Hack:size=8
您只需要安装包含这些字符的字体。例如,您可以使用此命令安装 Powerline fonts:
sudo apt-get install fonts-powerline
这对我也有用。
安装 Melno For Powerline 字体并更改默认终端字体。
$ git clone https://github.com/abertsch/Menlo-for-Powerline.git
$ cd Menlo-for-Powerline
$ sudo mv Menlo* /usr/share/fonts
现在打开终端
Edit->Preferences-> Unnamed-> Text -> Check Custom font
- 现在Select您的自定义字体为 Melno For Powerline Regular
我在 zshrc 文件中添加了这样的主题:
ZSH_THEME="agnoster"
但它最终看起来像这样:
我正在使用 Ubuntu Gnome 16.04。我错过了什么?
如 agnoster-github-page 所述,您需要
- 电力线修补字体
- 包含所需字符的字体
您当前使用的字体似乎缺少 \ue0b0
字符。它看起来与它应该看起来的样子不同(一个全行高一个字符宽的直角三角形)
我会研究其中的一些字体:
- Patched fonts for Powerline users
- 作为粉丝不使用补丁字体我更喜欢Hack and FiraCode
我在使用 urxvt 的 Debian 9 上遇到了这个问题。 修复了将字体更改为 Hack 的问题。感谢@AnimiVulpis 的回答。
在 Debian 上安装 Hack 字体:
apt-get install fonts-hack-ttf
在 ~/.Xresources 上配置:
URxvt.font: xft:Hack:size=8
您只需要安装包含这些字符的字体。例如,您可以使用此命令安装 Powerline fonts:
sudo apt-get install fonts-powerline
这对我也有用。
安装 Melno For Powerline 字体并更改默认终端字体。
$ git clone https://github.com/abertsch/Menlo-for-Powerline.git
$ cd Menlo-for-Powerline
$ sudo mv Menlo* /usr/share/fonts
现在打开终端
Edit->Preferences-> Unnamed-> Text -> Check Custom font
- 现在Select您的自定义字体为 Melno For Powerline Regular