SCRT-HQ / PSProfile

PSProfile is a cross-platform PowerShell module built for profile customization. It uses PoshCode's Configuration module to handle the layered Configuration.
Apache License 2.0
46 stars 8 forks source link

Information Request : How to use PSProfile and Oh-my-posh #40

Open avezinaATastus opened 4 years ago

avezinaATastus commented 4 years ago

Hi,

I'd like to know if there is a prefered method of using oh-my-posh and psprofile.

I have added oh-my-posh to $PSProfile.ModulesToImport and I have a init script that set-theme MyParadox , but the theme doesn't apply. I have to Set-Theme MyParadox again manually in the console. Probably because initscripts is executed before importmodules

Thanks

avezinaATastus commented 4 years ago

I tried

Set-Theme MyParadox
Add-PSProfilePrompt -Name OhMyPoshPrompt -SetAsDefault -Content $function:prompt -Save

But then, I get an empty prompt ps>

scrthq commented 4 years ago

Hey @avezinaATastus - thanks for trying out PSProfile! I haven't tried setting up PSProfile with oh-my-posh but I see the goal here! I'll try to replicate once back on a computer and consider this a bug if I can't get it working

fsackur commented 3 years ago

I'm about to try out PSProfile, as an omp user. Ping me if I haven't reported back within a week.