From 8d9317ce3d774bcab4742f5bcb47c707d04f101f Mon Sep 17 00:00:00 2001 From: benz Date: Tue, 25 Feb 2025 16:39:43 +0000 Subject: [PATCH] Fixes #995: Wildcard expansion for PowerShell --- templates/powershell.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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