Skip to content

Commit 69aa884

Browse files
committed
🚑️ Resolve #28
Ignore error with removing existing aliases.
1 parent e1c8efc commit 69aa884

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/aliases.ps1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
. $PSScriptRoot\utils.ps1
22

33
# Prevent conflict with built-in aliases
4-
Remove-Alias gc -Force
5-
Remove-Alias gcb -Force
6-
Remove-Alias gcm -Force
7-
Remove-Alias gcs -Force
8-
Remove-Alias gl -Force
9-
Remove-Alias gm -Force
10-
Remove-Alias gp -Force
11-
Remove-Alias gpv -Force
4+
Remove-Alias gc -Force -ErrorAction SilentlyContinue
5+
Remove-Alias gcb -Force -ErrorAction SilentlyContinue
6+
Remove-Alias gcm -Force -ErrorAction SilentlyContinue
7+
Remove-Alias gcs -Force -ErrorAction SilentlyContinue
8+
Remove-Alias gl -Force -ErrorAction SilentlyContinue
9+
Remove-Alias gm -Force -ErrorAction SilentlyContinue
10+
Remove-Alias gp -Force -ErrorAction SilentlyContinue
11+
Remove-Alias gpv -Force -ErrorAction SilentlyContinue
1212

1313
function g {
1414
git $args

0 commit comments

Comments
 (0)