76

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?

8
  • 3
    Have you installed powerline fonts? Feb 16, 2017 at 11:46
  • yes I have installed powerline fonts Feb 17, 2017 at 9:24
  • 2
    And have you pointed your iTerm to use that font? I suppose you were following this tutorial ? gist.github.com/kevin-smets/8568070 Feb 17, 2017 at 9:26
  • yes, I was following this tutorial, but I am unable to point iterm to fonts! Feb 17, 2017 at 9:31
  • What exactly are you unable to do ? You can't find the font in the list ? You can't find the window where to change it ? Feb 17, 2017 at 9:32

5 Answers 5

58

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:

50

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

This has fixed the issues.

1
  • 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") Jun 16, 2021 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

0
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.

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.