Skip to content

Commit

Permalink
🚑️ Resolve #28
Browse files Browse the repository at this point in the history
Ignore error with removing existing aliases.
  • Loading branch information
gluons committed Jun 7, 2021
1 parent e1c8efc commit 69aa884
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/aliases.ps1
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
. $PSScriptRoot\utils.ps1

# Prevent conflict with built-in aliases
Remove-Alias gc -Force
Remove-Alias gcb -Force
Remove-Alias gcm -Force
Remove-Alias gcs -Force
Remove-Alias gl -Force
Remove-Alias gm -Force
Remove-Alias gp -Force
Remove-Alias gpv -Force
Remove-Alias gc -Force -ErrorAction SilentlyContinue
Remove-Alias gcb -Force -ErrorAction SilentlyContinue
Remove-Alias gcm -Force -ErrorAction SilentlyContinue
Remove-Alias gcs -Force -ErrorAction SilentlyContinue
Remove-Alias gl -Force -ErrorAction SilentlyContinue
Remove-Alias gm -Force -ErrorAction SilentlyContinue
Remove-Alias gp -Force -ErrorAction SilentlyContinue
Remove-Alias gpv -Force -ErrorAction SilentlyContinue

function g {
git $args
Expand Down

0 comments on commit 69aa884

Please sign in to comment.