-
Notifications
You must be signed in to change notification settings - Fork 0
/
Set-SolarizedLightColorDefaults.ps1
48 lines (44 loc) · 1.93 KB
/
Set-SolarizedLightColorDefaults.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Host Foreground
$Host.PrivateData.ErrorForegroundColor = 'Red'
$Host.PrivateData.WarningForegroundColor = 'Yellow'
$Host.PrivateData.DebugForegroundColor = 'Green'
$Host.PrivateData.VerboseForegroundColor = 'Blue'
$Host.PrivateData.ProgressForegroundColor = 'Gray'
# Host Background
$Host.PrivateData.ErrorBackgroundColor = 'Gray'
$Host.PrivateData.WarningBackgroundColor = 'Gray'
$Host.PrivateData.DebugBackgroundColor = 'Gray'
$Host.PrivateData.VerboseBackgroundColor = 'Gray'
$Host.PrivateData.ProgressBackgroundColor = 'Cyan'
# Check for PSReadline
if (Get-Module -ListAvailable -Name "PSReadline") {
$options = Get-PSReadlineOption
# Foreground
$options.CommandForegroundColor = 'Yellow'
$options.ContinuationPromptForegroundColor = 'DarkYellow'
$options.DefaultTokenForegroundColor = 'DarkYellow'
$options.EmphasisForegroundColor = 'Cyan'
$options.ErrorForegroundColor = 'Red'
$options.KeywordForegroundColor = 'Green'
$options.MemberForegroundColor = 'DarkGreen'
$options.NumberForegroundColor = 'DarkGreen'
$options.OperatorForegroundColor = 'DarkCyan'
$options.ParameterForegroundColor = 'DarkCyan'
$options.StringForegroundColor = 'Blue'
$options.TypeForegroundColor = 'DarkBlue'
$options.VariableForegroundColor = 'Green'
# Background
$options.CommandBackgroundColor = 'White'
$options.ContinuationPromptBackgroundColor = 'White'
$options.DefaultTokenBackgroundColor = 'White'
$options.EmphasisBackgroundColor = 'White'
$options.ErrorBackgroundColor = 'White'
$options.KeywordBackgroundColor = 'White'
$options.MemberBackgroundColor = 'White'
$options.NumberBackgroundColor = 'White'
$options.OperatorBackgroundColor = 'White'
$options.ParameterBackgroundColor = 'White'
$options.StringBackgroundColor = 'White'
$options.TypeBackgroundColor = 'White'
$options.VariableBackgroundColor = 'White'
}