Fixes #995: Wildcard expansion for PowerShell

This commit is contained in:
benz 2025-02-25 16:39:43 +00:00
parent 845fe79b5e
commit 8d9317ce3d
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ function global:__zoxide_z {
__zoxide_cd $args[0] $false __zoxide_cd $args[0] $false
} }
elseif ($args.Length -eq 1 -and (Test-Path $args[0] -PathType Container)) { 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 { else {
$result = __zoxide_pwd $result = __zoxide_pwd