ZSH in WSL with agnoster theme

I'm trying ZSH in WSL on my Windows 10 machine. Here's a quick note about how to make it look better with agnoster theme.

ZSH

On my main machine I run Windows 10 with Windows Subsystem for Linux 2 and Windows 10 terminal

Today I tried to switch to ZSH and installed Oh My Zsh. After carefully chosing a theme I noticed it wasn't looking as nice as I've expected.

Set the theme in ~/.zshrc

1ZSH_THEME="agnoster"

The prompt looks like this:


The fix

After some google-fu I found the problem is the font.

To fix it start installing a better font line Cascadia code.

Then edit the Terminal app settings adding a supported font to the profiles section:

1"fontFace": "Cascadia Code PL",

Here's a sample:

1"profiles":
2    {
3        "defaults":
4        {
5            // Put settings here that you want to apply to all profiles.
6            "fontFace": "Cascadia Code PL",
7        },

Now the theme should look fine:


Links