From ee8bbe57d370e0cd6c0bf529f85bf3d9c7cf14e0 Mon Sep 17 00:00:00 2001 From: smolsbs <12942450+smolsbs@users.noreply.github.com> Date: Fri, 16 May 2025 10:19:09 +0000 Subject: [PATCH] Fixed the arg[0] argument position (#1056) --- templates/powershell.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/powershell.txt b/templates/powershell.txt index e134ab1..046061c 100644 --- a/templates/powershell.txt +++ b/templates/powershell.txt @@ -106,10 +106,10 @@ function global:__zoxide_z { elseif ($args.Length -eq 1 -and ($args[0] -eq '-' -or $args[0] -eq '+')) { __zoxide_cd $args[0] $false } - elseif ($args.Length -eq 1 -and (Test-Path $args[0] -PathType Container -LiteralPath)) { + elseif ($args.Length -eq 1 -and (Test-Path -PathType Container -LiteralPath $args[0])) { __zoxide_cd $args[0] $true } - elseif ($args.Length -eq 1 -and (Test-Path $args[0] -PathType Container -Path)) { + elseif ($args.Length -eq 1 -and (Test-Path -PathType Container -Path $args[0] )) { __zoxide_cd $args[0] $false } else {