-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSolarized.psm1
More file actions
36 lines (32 loc) · 1.04 KB
/
Solarized.psm1
File metadata and controls
36 lines (32 loc) · 1.04 KB
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
# Source all files in src\
$sourceFiles = Get-ChildItem -Path "$PSScriptRoot\src" -Filter "*.ps1" -Recurse
$sourceFiles | ForEach-Object {
. $_.FullName
}
# Export functions matching filenames in src\public
# Be sure to list each exported functions in the FunctionsToExport field of the module manifest file.
# This improves performance of command discovery in PowerShell.
$sourceFiles | Where-Object { ($_.DirectoryName | Split-Path -Leaf) -eq 'public' } | ForEach-Object {
Export-ModuleMember -Function $_.BaseName
}
$script:Palette = [pscustomobject]@{
Base03 = '#002b36'
Base02 = '#073642'
Base01 = '#586e75'
Base00 = '#657b83'
Base0 = '#839496'
Base1 = '#93a1a1'
Base2 = '#eee8d5'
Base3 = '#fdf6e3'
Yellow = '#b58900'
Orange = '#cb4b16'
Red = '#dc322f'
Magenta = '#d33682'
Violet = '#6c71c4'
Blue = '#268bd2'
Cyan = '#2aa198'
Green = '#859900'
}
# i18n
New-Alias -Name Get-SolarizedColour -Value Get-SolarizedColor
Export-ModuleMember -Alias Get-SolarizedColour