diff --git a/templates/powershell.txt b/templates/powershell.txt index 86b1966..277db86 100644 --- a/templates/powershell.txt +++ b/templates/powershell.txt @@ -107,7 +107,7 @@ function global:__zoxide_z { __zoxide_cd $args[0] $false } elseif ($args.Length -eq 1 -and (Test-Path $args[0] -PathType Container)) { - __zoxide_cd $args[0] $true + __zoxide_cd $args[0] $(Test-Path -LiteralPath $args[0]) } else { $result = __zoxide_pwd