powershell-profile icon indicating copy to clipboard operation
powershell-profile copied to clipboard

Stopped see the Stylish font

Open NaveDanan opened this issue 1 year ago • 1 comments

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? image after a few hours... image

** Edited ** I can initiate themes in my pwsh: image

But after reopening the pwsh terminal it reset back to what is shown in image 2

NaveDanan avatar Aug 12 '24 19:08 NaveDanan

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

Ronambulo avatar Sep 09 '24 22:09 Ronambulo

This is due to the way Get-Theme function works: image 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: image which will run the default theme (cobalt2) if it doesn't find another one in the personalized profile file.

galrothschild avatar Sep 19 '24 08:09 galrothschild