oh my zsh showing weird character '?' on t

2020-05-20 03:35发布

I have installed iTerm2 and Oh-my-zsh. However there is a weird question mark that is coming ever since I have changed ZSH-THEME to "agnoster".

Attaching the screenshot for the same.

check the question mark on terminal pointer

I thought powerline would help but that doesn't seem to happen. Can can anyone help me with this?

5条回答
虎瘦雄心在
2楼-- · 2020-05-20 04:02

Installing a powerline patched font will solve this. This official documentation provides description about installing poweline fonts.

There are two ways to enable powerline patched font in iTerm2.

  1. Set a powerline patched font as default.

One defauls font

  1. Set a powerline patched font for only Non-ASCII characters and use another font for code.

Different fonts

Bonus:

查看更多
beautiful°
3楼-- · 2020-05-20 04:07

On Windows - just * download some Powerline font like: https://github.com/abertsch/Menlo-for-Powerline/raw/master/Menlo%20for%20Powerline.ttf
* Install it by clicking the file twice
* Choose the new font in properties
That's it!

On Mac - the previous answer in totally correct, just install and choose an appropriate font.

查看更多
闹够了就滚
4楼-- · 2020-05-20 04:10

Run step 1-3 in your iterm2/terminal

  1. git clone https://github.com/powerline/fonts (clone it anywhere, You can remove cloned dir after step-4)
  2. cd fonts
  3. ./install.sh
  4. Open iTerm2->Preferences->Profiles->Text->Change Font-> Meslo LG S DZ Regular for Powerline

EDIT: If you are not using iTerm you can simply change the default macOS Terminal Preferences. (Thanks to Kewal Shah)

Reopen the terminal and you are done.

You can also refer this thread on git about the same.

查看更多
疯言疯语
5楼-- · 2020-05-20 04:13

The solution is to use a prepatched font. Point 6 of this article describes the solution.

查看更多
孤傲高冷的网名
6楼-- · 2020-05-20 04:15

This has fixed the issue. Just select Use built-in Powerline glyphs and use Inconsolata for PowerPoint font.

This has fixed the issues.

查看更多
登录 后发表回答