26

I've added the theme in the zshrc file like so:

ZSH_THEME="agnoster"

But it ends up looking like this:

enter image description here

I'm on Ubuntu Gnome 16.04. What am I missing?

dan-klasson
  • 13,734
  • 14
  • 63
  • 101

4 Answers4

28

You just need to install a font that contains these characters. for example, you can install Powerline fonts using this command:

sudo apt-get install fonts-powerline

That worked for me as well.

Amin
  • 421
  • 5
  • 7
  • 2
    Additionally I had to open a terminal, go to `preferences` -> `` -> `Text` -> `Custom font:` and pick a font with the suffix `...for Powerline` e.g. `DejaVu Sans Mono for Powerline` – tharndt Aug 11 '22 at 14:49
17

As stated on the agnoster-github-page you need either a

  • Powerline-patched font
  • Font that contains the characters needed

Your currently used font seems to be missing the \ue0b0 char. It looks different from what it should look like (A full-line-height one-char-wide right pointing triangle)

I would look into some of these fonts:

AnimiVulpis
  • 2,670
  • 1
  • 19
  • 27
1

Install Melno For Powerline font and Change default terminal font.

$ git clone https://github.com/abertsch/Menlo-for-Powerline.git

$ cd Menlo-for-Powerline

$ sudo mv Menlo* /usr/share/fonts

Now open terminal

Edit->Preferences-> Unnamed-> Text -> Check Custom font
  • Now Select your Custom font as Melno For Powerline Regular

enter image description here

Swaroop Maddu
  • 4,289
  • 2
  • 26
  • 38
0

I was having this issue on Debian 9 with urxvt. Fixed it changing font to Hack. Thanks to @AnimiVulpis answer.

Install Hack font on Debian:

apt-get install fonts-hack-ttf

Configure on ~/.Xresources:

URxvt.font: xft:Hack:size=8