Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legacy support for zoxide #89

Merged
merged 4 commits into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Microsoft.PowerShell_profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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" }

Expand Down Expand Up @@ -321,6 +321,9 @@ if (Get-Command zoxide -ErrorAction SilentlyContinue) {
}
}

Set-Alias -Name z -Value __zoxide_z
Set-Alias -Name zi -Value __zoxide_zi

# Help Function
function Show-Help {
@"
Expand Down
2 changes: 2 additions & 0 deletions setprofile.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$profilePath = Split-Path -Path $PROFILE
copy .\Microsoft.PowerShell_profile.ps1 $profilePath