PowerTip: Use PowerShell to Change Colors in PSReadline Module

Doctor Scripto

Summary: Learn how to use Windows PowerShell access color options in the PSReadline module.

Hey, Scripting Guy! Question How can I use Windows PowerShell to alter the colors in the PSReadline module?

Hey, Scripting Guy! Answer Use the Set-PSReadlineOption cmdlet to alter pretty much any item.
           For example, to provide a white foreground for error messages, use:

Set-PSReadlineOption –ErrorForegroundColor White

0 comments

Discussion is closed.

Feedback usabilla icon