Skip to content

Commit 1ae10ea

Browse files
committed
feat: add new alias for code vs code-insiders
1 parent f0f9d75 commit 1ae10ea

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

Profile/aliases.ps1

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,21 @@ Set-Alias -Name checkdisk -Value Invoke-Checkdisk
1414
Set-Alias -Name sfc -Value Invoke-SFCScan
1515
Set-Alias -Name expl -Value explorer.exe
1616
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'
1818

1919

2020
# Remove stupid 'touch' alias for 'set-filetime'
2121
Remove-Alias -Name touch
2222

2323
# Ensure `R` is for launching an R Terminal:
2424
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
2732
}
2833

2934
# Ensure gpg points to correct program
@@ -49,17 +54,17 @@ If (Get-Command gcalcli -ErrorAction SilentlyContinue) {
4954
Set-Alias -Name agenda -Value Get-Agenda
5055
Set-Alias -Name gcalm -Value Get-CalendarMonth
5156
Set-Alias -Name gcalw -Value Get-CalendarWeek
52-
Set-Alias -Name calm -Value Get-CalendarMonth
57+
Set-Alias -Name calm -Value Get-CalendarMonth
5358
Set-Alias -Name calw -Value Get-CalendarWeek
5459
Set-Alias -Name gcaladd -Value New-CalendarEvent
55-
Set-Alias -Name caladd -Value New-CalendarEvent
60+
Set-Alias -Name caladd -Value New-CalendarEvent
5661
}
5762

5863
# git-crypt
5964
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
6368
}
6469

6570
# If using code-insiders
@@ -69,5 +74,5 @@ If (Get-Command code-insiders -ErrorAction SilentlyContinue) {
6974

7075
# lsd
7176
If (Get-Command lsd -ErrorAction SilentlyContinue) {
72-
${function:lsa} = { & lsd -a }
77+
${function:lsa} = { & lsd -a }
7378
}

0 commit comments

Comments
 (0)