PowerTip: Use PowerShell to Change Colors in PSReadline Module


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

Comments (1)

  1. cyd says:

    This doesn’t seem to work for some items. For example:

    Set-PSReadlineOption -ParameterForgroundColor Gray

    will throw an error.

Skip to main content