Skip to content
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

A powershell verb would be nice #2201

Open
DarkShadow44 opened this issue Mar 14, 2024 · 2 comments
Open

A powershell verb would be nice #2201

DarkShadow44 opened this issue Mar 14, 2024 · 2 comments

Comments

@DarkShadow44
Copy link
Contributor

Seeing how some programs depend on powershell being present, it would be nice if that would be installable with winetricks.

Not sure how doable the native powershell is, but maybe something like powershell-wrapper-for-wine that uses pwsh (powershell core) could be useful.

@ProjectSynchro
Copy link

ProjectSynchro commented Apr 3, 2024

I forked this repository for fun and worked it into some custom winetricks verbs if anyone is interested in trying it out:
https://github.com/projectsynchro/powershell-wrapper-for-wine

I looked into how to remove the dependency on ComEmu, however with winebug 49780 still being around, PowerShell Core will output a lot of garbage ANSI colour values that wineconsole doesn't support (but reports that it does). If you run pwsh.exe directly in a newer console like Konsole, the colour values are at least displayed correctly.

Additionally, Powershell Core does support NO_COLOR, however not all parts of powershell seem to respect it. See: PowerShell/PowerShell#21160 and PowerShell/PSReadLine#3918.

I think we can get around the issues in PSReadLine by outright removing the troublesome module.

Let me know if any of this is wanted upstream and I can drop a PR.

@ProjectSynchro
Copy link

See progress on this here: #2211

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants