Powershell hyphen argument color

Viewed 3110

I want to change the color of the -a, --All arguments in Powershell. I have changed the string and command colors of my in Powershell like this.

Set-PSReadlineOption -TokenKind String -ForegroundColor Cyan
Set-PSReadlineOption -TokenKind Command -ForegroundColor Magenta

I cannot find how to change the hyphen arguments color.

Is it under Set-PSReadlineOption or somewhere else?

2 Answers

What you are looking for is something like this:

Set-PSReadLineOption -Colors @{"Parameter"="#ff81f7"}
Related