Closed totkeks closed 5 years ago
I fixed this in the existing file, but there seems to be two new color options, comment and selection.
Set-PSReadLineOption -Colors @{
"Command" = [ConsoleColor]::Yellow
#"Comment" = [ConsoleColor]::
"ContinuationPrompt" = [ConsoleColor]::DarkBlue
"DefaultToken" = [ConsoleColor]::DarkBlue
"Emphasis" = [ConsoleColor]::Cyan
"Error" = [ConsoleColor]::Red
"Keyword" = [ConsoleColor]::Green
"Member" = [ConsoleColor]::DarkCyan
"Number" = [ConsoleColor]::DarkCyan
"Operator" = [ConsoleColor]::DarkGreen
"Parameter" = [ConsoleColor]::DarkGreen
#"Selection" = [ConsoleColor]::
"String" = [ConsoleColor]::Blue
"Type" = [ConsoleColor]::DarkYellow
"Variable" = [ConsoleColor]::Green
}
Seems someone already fixed it with this pull request https://github.com/neilpa/cmd-colors-solarized/pull/41.
I was trying to run the
Set-SolarizedDarkColorDefaults.ps1
, but it gave me an error:That is because Get-PSReadlineOption returns a different object now and colors are set in a different manner:
The new way to set colors is described here: https://docs.microsoft.com/en-us/powershell/module/psreadline/set-psreadlineoption?view=powershell-6#examples