Last active
February 14, 2023 10:16
-
-
Save dima-iholkin/24eedb1ec32c22e1893b5beb3a1bedae to your computer and use it in GitHub Desktop.
PowerShell profile for a light theme DEPRECATED
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Deprecated. | |
# Settings: | |
# (Red, Green, Blue) | |
# Screen Background: 242, 242, 242 | |
# Screen Text: 12, 12, 12 | |
# Screen Background: 204, 204, 204 | |
# Screen Text: 58, 150, 221 | |
# Font: Cascadia Code PL | |
# Font Size: 18 | |
function Set-ConsoleColor { | |
# $host.ui.rawui.BackgroundColor = "White"; | |
# $host.ui.rawui.ForegroundColor = "Black"; | |
$Host.PrivateData.ErrorForegroundColor = "Red"; | |
# $Host.PrivateData.ErrorBackgroundColor = "White"; | |
$Host.PrivateData.WarningForegroundColor = "DarkYellow"; | |
# $Host.PrivateData.WarningBackgroundColor = "White"; | |
$Host.PrivateData.DebugForegroundColor = "DarkGray"; | |
# $Host.PrivateData.DebugBackgroundColor = "White"; | |
$Host.PrivateData.VerboseForegroundColor = "DarkGray"; | |
# $Host.PrivateData.VerboseBackgroundColor = "White"; | |
$Host.PrivateData.ProgressForegroundColor = "DarkCyan"; | |
# $Host.PrivateData.ProgressBackgroundColor = "Gray"; | |
$Host.PrivateData.ProgressBackgroundColor = "White"; | |
Set-PSReadLineOption -Colors @{ | |
Command = "Cyan" | |
Member = "Black" | |
Number = "DarkRed" | |
String = "DarkRed" | |
Variable = "DarkBlue" | |
Keyword = "Cyan" | |
Emphasis = "Green" | |
Comment = "DarkGreen" | |
Parameter = "Black" | |
Operator = "Black" | |
Type = "DarkGray" | |
# DefaultToken = "Black" | |
ContinuationPrompt = "Black" | |
}; | |
} | |
Set-ConsoleColor; | |
Import-Module PowerLine; | |
Set-PowerLinePrompt -Colors "#A0A0A0","#C0C0C0" -PowerLineFont; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
from here: https://4sysops.com/wiki/change-powershell-console-syntax-highlighting-colors-of-psreadline/