This repository has been archived by the owner on Feb 16, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 284
/
defaults.ps1
102 lines (100 loc) · 4.87 KB
/
defaults.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Oh-My-Posh default settings
function Get-ThemesLocation {
$folderName = "PoshThemes"
if ($PROFILE) {
return (Join-Path (Split-Path -Parent $PROFILE) $folderName)
}
return "~\${$folderName}"
}
$global:ThemeSettings = New-Object -TypeName PSObject -Property @{
CurrentUser = [System.Environment]::UserName
CurrentHostname = [System.Environment]::MachineName
CurrentThemeLocation = "$PSScriptRoot\Themes\Agnoster.psm1"
MyThemesLocation = Get-ThemesLocation
ErrorCount = 0
GitSymbols = @{
BranchSymbol = [char]::ConvertFromUtf32(0xE0A0)
BeforeStashSymbol = '{'
BeforeIndexSymbol = ''
BeforeWorkingSymbol = ''
AfterStashSymbol = '}'
DelimSymbol = '|'
LocalWorkingStatusSymbol = '!'
LocalStagedStatusSymbol = '~'
LocalDefaultStatusSymbol = ''
BranchUntrackedSymbol = [char]::ConvertFromUtf32(0x2262)
BranchIdenticalStatusToSymbol = [char]::ConvertFromUtf32(0x2263)
BranchAheadStatusSymbol = [char]::ConvertFromUtf32(0x2191)
BranchBehindStatusSymbol = [char]::ConvertFromUtf32(0x2193)
OriginSymbols = @{
Github = [char]::ConvertFromUtf32(0xF09B)
Bitbucket = [char]::ConvertFromUtf32(0xF171)
GitLab = [char]::ConvertFromUtf32(0xF296)
}
}
PromptSymbols = @{
StartSymbol = ' '
TruncatedFolderSymbol = '..'
PromptIndicator = [char]::ConvertFromUtf32(0x25B6)
FailedCommandSymbol = [char]::ConvertFromUtf32(0x2A2F)
ElevatedSymbol = [char]::ConvertFromUtf32(0x26A1)
SegmentForwardSymbol = [char]::ConvertFromUtf32(0xE0B0)
SegmentBackwardSymbol = [char]::ConvertFromUtf32(0x26A1)
SegmentSeparatorForwardSymbol = [char]::ConvertFromUtf32(0x26A1)
SegmentSeparatorBackwardSymbol = [char]::ConvertFromUtf32(0x26A1)
PathSeparator = [System.IO.Path]::DirectorySeparatorChar
VirtualEnvSymbol = [char]::ConvertFromUtf32(0xE606)
HomeSymbol = '~'
RootSymbol = '#'
UNCSymbol = '§'
}
Colors = @{
GitDefaultColor = [ConsoleColor]::DarkGreen
GitLocalChangesColor = [ConsoleColor]::DarkYellow
GitNoLocalChangesAndAheadColor = [ConsoleColor]::DarkMagenta
GitNoLocalChangesAndBehindColor = [ConsoleColor]::DarkRed
GitNoLocalChangesAndAheadAndBehindColor = [ConsoleColor]::DarkRed
PromptForegroundColor = [ConsoleColor]::White
PromptHighlightColor = [ConsoleColor]::DarkBlue
DriveForegroundColor = [ConsoleColor]::DarkBlue
PromptBackgroundColor = [ConsoleColor]::DarkBlue
PromptSymbolColor = [ConsoleColor]::White
SessionInfoBackgroundColor = [ConsoleColor]::Black
SessionInfoForegroundColor = [ConsoleColor]::White
CommandFailedIconForegroundColor = [ConsoleColor]::DarkRed
AdminIconForegroundColor = [ConsoleColor]::DarkYellow
WithBackgroundColor = [ConsoleColor]::DarkRed
WithForegroundColor = [ConsoleColor]::White
GitForegroundColor = [ConsoleColor]::Black
VirtualEnvForegroundColor = [ConsoleColor]::White
VirtualEnvBackgroundColor = [ConsoleColor]::Red
}
Options = @{
ConsoleTitle = $true
OriginSymbols = $false
PreserveLastExitCode = $true
}
}
# PSColor default settings
$global:PSColor = @{
File = @{
Default = @{ Color = 'White' }
Directory = @{ Color = 'DarkBlue' }
Hidden = @{ Color = 'Gray'; Pattern = '^\.' }
Code = @{ Color = 'Magenta'; Pattern = '\.(java|c|cpp|cs|js|css|html)$' }
Executable = @{ Color = 'Red'; Pattern = '\.(exe|bat|cmd|py|pl|ps1|psm1|vbs|rb|reg)$' }
Text = @{ Color = 'White'; Pattern = '\.(txt|cfg|conf|ini|csv|log|config|xml|yml|md|markdown)$' }
Compressed = @{ Color = 'DarkGreen'; Pattern = '\.(zip|tar|gz|rar|jar|war)$' }
}
Service = @{
Default = @{ Color = 'White' }
Running = @{ Color = 'DarkGreen' }
Stopped = @{ Color = 'DarkYellow' }
}
Match = @{
Default = @{ Color = 'White' }
Path = @{ Color = 'Cyan' }
LineNumber = @{ Color = 'DarkGreen' }
Line = @{ Color = 'White' }
}
}