Fonts missing in oh-my-zsh on WSL

Im trying to setup Oh-my-zsh on WSL Ubuntu 18.04 with agnoster theme

I already follow this guide : https://blog.joaograssi.com/windows-subsystem-for-linux-with-oh-my-zsh-conemu/

I've installed all the powerline fonts possible, but there are still missing characters :

echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"
 ±     

Solution 1:

You need to set the font for the Terminal:

  1. Start the Windows Subsystem for Linux
  2. Right-click on the window and select the properties
  3. Select one of the fonts with Powerline in its name
  4. Confirm with "OK"

enter image description here

Solution 2:

Install the DejaVuSansMono font from the Powerline fonts repo. I'm using the agnoster theme which works well it. You should be ok to install just DejaVuSansMono, alternatively you can use the script in the repository to install all the themes.

I recommend installing Windows Terminal from the Micosoft Store and then set the fontFace in the settings. You access the settings.json from the top menu.

            {
                "guid": "{9080976-de2c-5db4-097h-7865765}",
                "hidden": false,
                "name": "Ubuntu-20.04",
                "source": "Windows.Terminal.Wsl",
                "colorScheme" : "wsl",
                "fontFace" : "DejaVu Sans Mono for Powerline"
            },

Here is a good blog on this also.