Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display issue with oh-my-zsh agnoster theme

Tags:

zsh

oh-my-zsh

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?

like image 498
dan-klasson Avatar asked Jun 18 '16 09:06

dan-klasson


People also ask

How do I set up Agnoster theme?

Configure Agnoster theme For this, you first need to download a font that supports the unique characters and icons used by the theme. After installing the font, you can enable the Agnoster theme by changing the ZSH_THEME variable inside the ~/. zshrc configuration file.

How do I change the theme of oh my zsh?

To see the previous section, go to Themes (legacy). All the current themes can be found in the themes/ directory in the Oh My Zsh distribution.

Where are zsh themes stored?

All ZSH-THEME files are stored in Oh My Zsh's themes directory (located at ~/​. oh-my-zsh/​themes). Zsh is a Unix shell and command language that was created by Paul Falstad in 1990. It is very similar to the Bash shell.


2 Answers

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.

like image 69
Amin Avatar answered Sep 19 '22 14:09

Amin


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:

  • Patched fonts for Powerline users
  • Being a fan of not using patched fonts I prefer Hack and FiraCode
like image 34
AnimiVulpis Avatar answered Sep 20 '22 14:09

AnimiVulpis