-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
DSC Resource for oh-my-posh #4340
Comments
As soon as we get this working, we should put a sample configuration at Dev Home. |
This looks like an interesting feature, but I don't see how this can drastically reduce time setting up oh my posh |
It's not aiming to drastically reduce time. It's more about automating the setup and configuration. |
I didn't notice you are the product manager for winget Good luck with the PR, and thanks for the work 👍 |
@denelon I've been trying to give this a go and I'm blocked on the first step. Maybe it's something obvious, or there are dependencies I don't have which results in a bad user experience. Sample configuration file: # yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
properties:
resources:
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: ohmyposh
directives:
description: Install Oh My Posh
allowPrerelease: true
settings:
id: JanDeDobbeleer.OhMyPosh
source: winget
configurationVersion: 0.2.0 Outcome: |
@JanDeDobbeleer I'm so sorry for a very late reply. I didn't see your reply, and was just checking in. I wasn't able to repro the problem you encountered. # yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
properties:
resources:
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: ohmyposh
directives:
description: Install Oh My Posh
allowPrerelease: true
settings:
id: JanDeDobbeleer.OhMyPosh
source: winget
configurationVersion: 0.2.0 |
We're adding sample configurations to Dev Home. We're currently working on improving the documentation and providing additional samples for specific DSC Resources. I'd love to add a sample for configuring oh-my-posh. It's one of the very first things I do when I'm setting up a new device. I'll be building a configuration (as will several others) to demonstrate everything I like to install and configure on Windows so share. We'll be adding a README with links to several examples for MSFT contributors to capture gaps in WinGet configuration and to share our progress. I think it would be awesome to share this in my future presentations. 😊 |
@denelon I still have that error. It just doesn't work on my machine. I can't work on this until someone can tell me how to solve this. I'll create a bug at winget.
|
@ryfu-msft - any chance you can help debug? I'd love to have this feature added to my setup script. |
@joadoumie @denelon I found that dll in the PowerShell module, but my .NET skills are ancient and I couldn't add this where winget expects them. Although I'd argue this shouldn't be my experience 😅 EDIT: I didn't validate the version though, will have a look at that as well. |
@JanDeDobbeleer, can you repro this again but with the |
@JanDeDobbeleer - I was curious what it would take to get this done, so I started playing around with it today. If you're interested and it's helpful, I can share my WIP first-draft. Right now, it only is working for pwsh setup because that's all I'm honestly familiar with. |
@joadoumie you can always share, but as I'm having issues getting this to work I'm not including this until I can also test and support it. |
@JanDeDobbeleer - totally makes sense! I just got curious what it would take so it's been fun to play around with it. I also likely haven't accounted for a lot of things I'd imagine. I'll clean it up a little more than maybe just open a draft PR in the repo for comparison in the future whenever you're able to fix the issue & test/support. |
It looks like the issue "might" be related to running Windows on a Mac using Parallels. I'll need to see if I can reproduce this on another device. If anyone else can confirm, that would also be sufficient for us to see if we can make some progress for that particular device/OS configuration. |
Code of Conduct
What would you like to see changed/added?
Suggested new feature or improvement
I'd like to be able to use the WinGet Configuration feature to configure oh-my-posh.
In the future when DSC v3 supports the "export" behavior, this could also be used as a part of the export a configuration scenario.
export
scenario PowerShell/DSC#73Scenario
I want to set up a new device and have the ability to configure oh-my-posh with WinGet Configure or by selecting the configuration in Dev Home.
Additional details
I would expect the Microsoft.WinGet.DSC resource would be used to install oh-my-posh on my machine. Then as a dependency I'd like to be able to use a DSC resource to configure oh-my-posh the way I like it.
The text was updated successfully, but these errors were encountered: