powershell-profile
powershell-profile copied to clipboard
Stopped see the Stylish font
Hi!
I'm using Win 11 OS x64, pwsh version 7.4.4.
When I first installed it, it was working fine, but now my font looks like this (second image), I set Cove Font Nerd Mono as default (in the default tab and in the pwsh tab). Has anyone had a similar experience with it?
after a few hours...
** Edited **
I can initiate themes in my pwsh:
But after reopening the pwsh terminal it reset back to what is shown in image 2
not the ideal thing, but add that command to your profile so it runs with your terminal every time you open it up.
use Edit-Profile
and paste it
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\YOURTHEMEHERE.omp.json" | Invoke-Expression
This is due to the way Get-Theme function works:
If it recognizes a profile.ps1 (Can be created by the command
Edit-Profile or by another cli tool that wants to edit the profile) it will search for the theme in there even if it's not there and won't run at all if it doesn't find it.
Easy fix for it would be like this:
which will run the default theme (cobalt2) if it doesn't find another one in the personalized profile file.