this repo has no description
dotfiles
1# Fix input/output encoding to be UTF-8
2# SERIOUSLY MICROSOFT WHY IS THIS DIRTY HACK REQUIRED
3# USE SANE ENCODING DEFAULTS ALREADY LIKE LITERALLY EVERY OTHER OPERATING SYSTEM
4# ON THE G-D DAMN MARKET
5$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding
6
7# Available colors
8# DarkBlue | DarkGreen | DarkCyan | DarkRed | DarkMagenta | DarkYellow |DarkGray
9# Blue | Green | Cyan | Red | Magenta | Yellow | White | Gray | Black
10
11$background = 'Black'
12
13[console]::BackgroundColor = $background
14
15# Main Colors
16$host.UI.RawUI.ForegroundColor = 'White'
17$host.UI.RawUI.BackgroundColor = $background
18
19# Error, warning and debug colors
20$host.PrivateData.ErrorForegroundColor = 'Red'
21$host.PrivateData.ErrorBackgroundColor = $background
22
23$host.PrivateData.WarningForegroundColor = 'Yellow'
24$host.PrivateData.WarningBackgroundColor = $background
25
26$host.PrivateData.DebugForegroundColor = 'Gray'
27$host.PrivateData.DebugBackgroundColor = $background
28
29$host.PrivateData.VerboseForegroundColor = 'Gray'
30$host.PrivateData.VerboseBackgroundColor = $background
31
32$host.PrivateData.ProgressForegroundColor = 'Gray'
33$host.PrivateData.ProgressBackgroundColor = $background
34
35# Syntax coloring and highlighting
36#Set-PSReadlineOption -TokenKind Comment -ForegroundColor Gray
37#Set-PSReadlineOption -TokenKind Comment -BackgroundColor $background
38
39#Set-PSReadlineOption -TokenKind Keyword -ForegroundColor DarkGreen
40#Set-PSReadlineOption -TokenKind Keyword -BackgroundColor $background
41
42#Set-PSReadlineOption -TokenKind String -ForegroundColor Gray
43#Set-PSReadlineOption -TokenKind String -BackgroundColor $background
44
45#Set-PSReadlineOption -TokenKind Operator -ForegroundColor White
46#Set-PSReadlineOption -TokenKind Operator -BackgroundColor $background
47
48#Set-PSReadlineOption -TokenKind Variable -ForegroundColor Green
49#Set-PSReadlineOption -TokenKind Variable -BackgroundColor $background
50
51#Set-PSReadlineOption -TokenKind Command -ForegroundColor White
52#Set-PSReadlineOption -TokenKind Command -BackgroundColor $background
53
54#Set-PSReadlineOption -TokenKind Parameter -ForegroundColor White
55#Set-PSReadlineOption -TokenKind Parameter -BackgroundColor $background
56
57#Set-PSReadlineOption -TokenKind Type -ForegroundColor Cyan
58#Set-PSReadlineOption -TokenKind Type -BackgroundColor $background
59
60#Set-PSReadlineOption -TokenKind Number -ForegroundColor Magenta
61#Set-PSReadlineOption -TokenKind Number -BackgroundColor $background
62
63#Set-PSReadlineOption -TokenKind Member -ForegroundColor Cyan
64#Set-PSReadlineOption -TokenKind Member -BackgroundColor $background
65
66Set-PSReadlineOption -BellStyle None
67
68#Clear-Host
69
70Get-Content -Path "$env:USERPROFILE\dotfiles\windows\aliases.ps1" -Raw | Invoke-Expression
71
72Unblock-File -Path ~/dotfiles/windows/ssh-agent-utils.ps1
73. (Resolve-Path ~/dotfiles/windows/ssh-agent-utils.ps1)
74
75Import-Module posh-git