Display issue with oh-my-zsh agnoster theme
Asked Answered
D

5

31

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?

Dumbfound answered 18/6, 2016 at 9:38 Comment(2)
Follow this: gist.github.com/renshuki/3cf3de6e7f00fa7e744aDumbfound
This video solved my problem youtube.com/watch?v=dxDLXr8S2YkUngulate
L
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:

Luttrell answered 20/7, 2016 at 8:18 Comment(0)
M
31

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.

Maudiemaudlin answered 12/8, 2020 at 11:23 Comment(3)
Additionally I had to open a terminal, go to preferences -> <my active profile> -> Text -> Custom font: and pick a font with the suffix ...for Powerline e.g. DejaVu Sans Mono for PowerlineVinson
what can I do if its just a wsl 2 terminal that I have with zsh? how to config it in .zshrc for example?Imprecation
You will need to install a Powerline-patched font for this theme to render correctly. github.com/agnoster/agnoster-zsh-theme?tab=readme-ov-fileTube
L
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:

Luttrell answered 20/7, 2016 at 8:18 Comment(0)
O
3

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

Otten answered 3/10, 2020 at 3:10 Comment(0)
S
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
Spain answered 12/10, 2017 at 5:2 Comment(1)
I'm on Linuxmint, and it doesn't fix it for me, same problem.Capwell
R
0

you should config normal font

live_config_reload = true
[window]
dimensions = { columns = 120, lines=50 }
[font]
bold = {family = "Fira Code",style = "Bold" }
normal = {family = "Fira Mono for Powerline",style = "Bold" }
size = 12.00
[colors]
primary.foreground="#90D26D"
primary.background="#000000"
Reorganize answered 3/4 at 18:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.