-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.ps1
47 lines (39 loc) · 1.12 KB
/
profile.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
Import-Module PSReadLine
Set-PSReadlineOption -EditMode vi
Set-Alias -Name n -Value 'nvim'
Set-Alias -Name g -Value './gradlew.bat'
Set-Alias -Name lg -Value 'lazygit'
function oe {
cd C:\TylerDev\github\eagle
}
function gs {
git stash
git pull --rebase
git push
git stash pop
}
# For light mode
Set-PSReadLineOption -Colors @{
Command = 'Black'
Number = 'DarkGray'
Member = 'DarkGray'
Operator = 'DarkGray'
Type = 'DarkGray'
Variable = 'DarkGreen'
Parameter = 'DarkGreen'
ContinuationPrompt = 'DarkGray'
Default = 'DarkGray'
}
# Logging / Progress colors
$p = $host.privatedata
$p.ErrorForegroundColor = "Red"
$p.ErrorBackgroundColor = "White"
$p.WarningForegroundColor = "Yellow"
$p.WarningBackgroundColor = "White"
$p.DebugForegroundColor = "Yellow"
$p.DebugBackgroundColor = "White"
$p.VerboseForegroundColor = "Black"
$p.VerboseBackgroundColor = "White"
$p.ProgressForegroundColor = "DarkGray"
$p.ProgressBackgroundColor = "White"
Set-PSReadLineKeyHandler -Chord "Ctrl+f" -Function AcceptSuggestion