I can't change the text color between two quotes (now its color is durk-blue). Where can I set up this setting or which command I have to execute?
Asked
Active
Viewed 1,747 times
1 Answers
7
PSReadline v1.x (as shipped with Windows PowerShell v5.1 on Windows 10 and above):
Set-PSReadlineOption -TokenKind String -ForegroundColor Green
PSReadline v2.x (as shipped with PowerShell (Core) v6.1+):
Set-PSReadLineOption -Colors @{ String = 'Green' }
Note:
In both cases you can use the colors defined in the
[ConsoleColor]
enumeration type.In v2.x you can alternatively use VT (Virtual Terminal) / ANSI escape sequences, which you must use if you want to set background colors.
For more information, see this answer and the Set-PSReadlineOption
documentation.

mklement0
- 382,024
- 64
- 607
- 775