diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 91992e0e..e541f6a4 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -258,7 +258,7 @@ function gc { param($m) git commit -m "$m" } function gp { git push } -function g { z Github } +function g { __zoxide_z github } function gcl { git clone "$args" } @@ -321,6 +321,9 @@ if (Get-Command zoxide -ErrorAction SilentlyContinue) { } } +Set-Alias -Name z -Value __zoxide_z -Option AllScope -Scope Global -Force +Set-Alias -Name zi -Value __zoxide_zi -Option AllScope -Scope Global -Force + # Help Function function Show-Help { @" diff --git a/setprofile.ps1 b/setprofile.ps1 new file mode 100644 index 00000000..32e135c2 --- /dev/null +++ b/setprofile.ps1 @@ -0,0 +1,2 @@ +$profilePath = Split-Path -Path $PROFILE +copy .\Microsoft.PowerShell_profile.ps1 $profilePath \ No newline at end of file