oh-my-posh not work on powershell administrator mode #5977
Unanswered
superlee007
asked this question in
Troubleshoot
Replies: 1 comment
-
@superlee007 you're starting administrator in a different terminal so that one needs to be configured as well. Administrator is a different user, different settings apply. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a question. I installed Oh My Posh on my Windows PowerShell by following the official installation guide. I used
winget install JanDeDobbeleer.OhMyPosh -s winget
to install Oh My Posh and then proceeded to install the recommended fonts. The guide suggests using the commandoh-my-posh font install meslo
to install fonts, but due to network issues, I kept getting timeout errors when accessing GitHub.As a workaround, I manually downloaded the Meslo font from this GitHub link, extracted the files, and installed the fonts by copying them to C:\Windows\Fonts. Next, I configured PowerShell's font settings using the following JSON:
Finally, I ran
notepad $PROFILE
and addedoh-my-posh init pwsh | Invoke-Expression
. After restarting PowerShell, the theme and style appeared correctly.However, when I open PowerShell as an administrator, the font is not applied correctly and displays garbled text. I have to manually set the font to MesloLGM Nerd Font Mono in the properties every time I start PowerShell in administrator mode. How can I fix this so the font applies automatically for administrator PowerShell?
Beta Was this translation helpful? Give feedback.
All reactions