How do I change the command color in powershell? Currently it is yellow and when I use powershell nested in Intellij, I can't read the yellow command on white background.

Regarding @LotPings answer, I solved my issue. The following command in powershell changed the command color from yellow to green:
Set-PSReadLineOption -colors @{ Command = "Green"}
                        You can also set an environment variable in the terminal settings:
IntelliJ terminal settings
Then edit your powershell profile and add something like this:
if ($env:CommandColor) {
    Set-PSReadLineOption -colors @{ Command = $env:CommandColor}
}
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With