82

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?

GGamba
  • 13,140
  • 3
  • 38
  • 47
Aditi Kaushal
  • 829
  • 1
  • 6
  • 3

5 Answers5

59

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:

salmanulfarzy
  • 1,484
  • 14
  • 18
58

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

This has fixed the issues.

shaahiin
  • 1,243
  • 1
  • 16
  • 26
Jakub Mróz
  • 741
  • 6
  • 4
  • This worked for me, but one extra thing I had to do was to apply these changes to not just the default profile in iterm2, but also my user-specific profile ("jeff") – Jeff Wright Jun 16 '21 at 13:46
14

Just do the following, it worked for me, trust me, see the truth in my eyes.

Go to preference->Profiles->Test and look at the following figure:- enter image description here

Hacklavya
  • 1,275
  • 8
  • 8
7

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.

Arif Dewi
  • 2,222
  • 26
  • 14
0

This answer relates to a similar problem I encountered but for the oh-my-posh application on Windows 10 Pro.

For others who might be wrestling with this, I also was having issues where the font would create tiny boxes with question marks. Turns out it was because my version of Windows 10 Pro was not activated. I found this out by trying to search for Fonts in the settings, and was unable to search for any of the Nerd Fonts I thought I had downloaded. Activating Windows 10 Pro fixed the problem as soon as I reloaded.

sbanders
  • 851
  • 1
  • 9
  • 19