-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows Terminal not showing powerline glyph for WSL2 even if PL font is used #10334
Comments
Can you share a copy of your settings JSON file? Choose the |
Sure here it is: { |
Interesting. Can you share a screenshot of the "Font settings" page displaying the font info for Cascadia Code PL? It should have a file path, version, etc. This is unusual! |
Ah, interesting. One last question: can you copy the offending line out of Terminal and paste it here on GitHub? 😄 |
Sure! It actually looks to be a debian specific issue on WSL2, I got it to work as expected on my ubuntu wsl 1 installation. |
This looks like character U+F594. It is an Erlenmeyer flask. It is not part of the "PowerLine" set of glyphs. |
Also, sorry -- I was curt. I meant to say "thanks for the report!" |
Ok, but that is super weird as it is supposed to be the branch symbol E0A0 but for some reason it becomes a different symbol. |
For those who might run into similar issues, it turned out that the issue was related to oh-my-posh and my WSL2 Debian setup. There are two issues: The first is that oh-my-posh detects that when you are in a windows folder (mnt/c) it runs the windows version of git, make sure that git.exe is installed in windows and added to your wsl PATH. The second issue was that when not in a windows folders I had to turn on the following setting in my choice of .omp.json file for the git type:
When these two issues where solved it works. Why it gave a misleading F594 character is a mystery. |
Windows Terminal version (or Windows build number)
1.8.1521.0
Other Software
WSL2 Debian
Steps to reproduce
Followed tutorial: https://docs.microsoft.com/en-us/windows/terminal/tutorials/powerline-setup
For WSL/UBUNTU
Downloaded cascadia code font: Cascadia Code 2105.24
Installed CascadiaCodePL
Changed windows terminal font face to Cascadia Code PL for Debian
Installed oh-my-posh:
wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh
chmod +x /usr/local/bin/oh-my-posh
mkdir ~/.poshthemes
wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/themes.zip -O ~/.poshthemes/themes.zip
unzip ~/.poshthemes/themes.zip -d ~/.poshthemes
chmod u+rw ~/.poshthemes/*.json
rm ~/.poshthemes/themes.zip
Added to .bashrc:
eval "$(oh-my-posh --init --shell bash --config ~/.poshthemes/ys.omp.json)"
Expected Behavior
This image is from powershell on my mashine where it works
Actual Behavior
This image is from WSL2 Debian on my mashine where it does not work
The text was updated successfully, but these errors were encountered: