chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.05k stars 890 forks source link

Take (error) colors from the profile of the user #3367

Closed kingma-sbw closed 7 months ago

kingma-sbw commented 7 months ago

Checklist

Is Your Feature Request Related To A Problem? Please describe.

Followup on #2199 Why not use the colors set in the users profile? I've mine set in MicrosoftPowerShell_profile.ps1 thusly:

$host.PrivateData.ErrorBackgroundColor="red"
$host.PrivateData.ErrorForegroundColor="white"

# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
  Import-Module "$ChocolateyProfile"
}

What would it take to have choco just use the set error colors from the profile?

Describe The Solution. Why is it needed?

A use might have painstakingly create a PowerShell profile with the proper color for his or her liking.

Additional Context

No response

Related Issues

2199