Skip to content

Commit 87c4c63

Browse files
zoxide z alias
1 parent 6013a5d commit 87c4c63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Microsoft.PowerShell_profile.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,13 +611,13 @@ Register-ArgumentCompleter -Native -CommandName dotnet -ScriptBlock $scriptblock
611611
oh-my-posh init pwsh --config https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/cobalt2.omp.json | Invoke-Expression
612612

613613
if (Get-Command zoxide -ErrorAction SilentlyContinue) {
614-
Invoke-Expression (& { (zoxide init powershell | Out-String) })
614+
Invoke-Expression (& { (zoxide init --cmd z powershell | Out-String) })
615615
} else {
616616
Write-Host "zoxide command not found. Attempting to install via winget..."
617617
try {
618618
winget install -e --id ajeetdsouza.zoxide
619619
Write-Host "zoxide installed successfully. Initializing..."
620-
Invoke-Expression (& { (zoxide init powershell | Out-String) })
620+
Invoke-Expression (& { (zoxide init --cmd z powershell | Out-String) })
621621
} catch {
622622
Write-Error "Failed to install zoxide. Error: $_"
623623
}

0 commit comments

Comments
 (0)