File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -611,13 +611,13 @@ Register-ArgumentCompleter -Native -CommandName dotnet -ScriptBlock $scriptblock
611
611
oh- my- posh init pwsh -- config https:// raw.githubusercontent.com / JanDeDobbeleer/ oh- my- posh/ main/ themes/ cobalt2.omp.json | Invoke-Expression
612
612
613
613
if (Get-Command zoxide - ErrorAction SilentlyContinue) {
614
- Invoke-Expression (& { (zoxide init powershell | Out-String ) })
614
+ Invoke-Expression (& { (zoxide init -- cmd z powershell | Out-String ) })
615
615
} else {
616
616
Write-Host " zoxide command not found. Attempting to install via winget..."
617
617
try {
618
618
winget install - e -- id ajeetdsouza.zoxide
619
619
Write-Host " zoxide installed successfully. Initializing..."
620
- Invoke-Expression (& { (zoxide init powershell | Out-String ) })
620
+ Invoke-Expression (& { (zoxide init -- cmd z powershell | Out-String ) })
621
621
} catch {
622
622
Write-Error " Failed to install zoxide. Error: $_ "
623
623
}
You can’t perform that action at this time.
0 commit comments