@@ -14,16 +14,21 @@ Set-Alias -Name checkdisk -Value Invoke-Checkdisk
14
14
Set-Alias - Name sfc - Value Invoke-SFCScan
15
15
Set-Alias - Name expl - Value explorer.exe
16
16
Set-Alias - Name np - Value ' C:\Program Files\WindowsApps\Microsoft.WindowsNotepad_11.2111.0.0_x64__8wekyb3d8bbwe\Notepad\Notepad.exe'
17
- Set-Alias - Name files - Value " C:\Program Files\WindowsApps\49306atecsolution.FilesUWP_2.0.34.0_x64__et10x9a9vyk8t\Files.exe"
17
+ Set-Alias - Name files - Value ' C:\Program Files\WindowsApps\49306atecsolution.FilesUWP_2.0.34.0_x64__et10x9a9vyk8t\Files.exe'
18
18
19
19
20
20
# Remove stupid 'touch' alias for 'set-filetime'
21
21
Remove-Alias - Name touch
22
22
23
23
# Ensure `R` is for launching an R Terminal:
24
24
if (Get-Command R.exe - ErrorAction SilentlyContinue | Test-Path ) {
25
- Remove-Item Alias:r - ErrorAction SilentlyContinue
26
- ${function: r} = { R.exe @args }
25
+ Remove-Item Alias:r - ErrorAction SilentlyContinue
26
+ ${function: r} = { R.exe @args }
27
+ }
28
+
29
+ # VSCode / VSCode Insiders
30
+ If (! (Get-Command code - ErrorAction SilentlyContinue)) {
31
+ Set-Alias - Name code - Value code- insiders
27
32
}
28
33
29
34
# Ensure gpg points to correct program
@@ -49,17 +54,17 @@ If (Get-Command gcalcli -ErrorAction SilentlyContinue) {
49
54
Set-Alias - Name agenda - Value Get-Agenda
50
55
Set-Alias - Name gcalm - Value Get-CalendarMonth
51
56
Set-Alias - Name gcalw - Value Get-CalendarWeek
52
- Set-Alias - Name calm - Value Get-CalendarMonth
57
+ Set-Alias - Name calm - Value Get-CalendarMonth
53
58
Set-Alias - Name calw - Value Get-CalendarWeek
54
59
Set-Alias - Name gcaladd - Value New-CalendarEvent
55
- Set-Alias - Name caladd - Value New-CalendarEvent
60
+ Set-Alias - Name caladd - Value New-CalendarEvent
56
61
}
57
62
58
63
# git-crypt
59
64
If (Get-Command git- crypt - ErrorAction SilentlyContinue) {
60
- Set-Alias - Name gcrypts - Value Get-GitCryptStatus
61
- Set-Alias - Name gcrypt - Value git- crypt
62
- Set-Alias - Name gcryptf Invoke-GitCryptStatus
65
+ Set-Alias - Name gcrypts - Value Get-GitCryptStatus
66
+ Set-Alias - Name gcrypt - Value git- crypt
67
+ Set-Alias - Name gcryptf Invoke-GitCryptStatus
63
68
}
64
69
65
70
# If using code-insiders
@@ -69,5 +74,5 @@ If (Get-Command code-insiders -ErrorAction SilentlyContinue) {
69
74
70
75
# lsd
71
76
If (Get-Command lsd - ErrorAction SilentlyContinue) {
72
- ${function: lsa} = { & lsd - a }
77
+ ${function: lsa} = { & lsd - a }
73
78
}
0 commit comments