Fixed the arg[0] argument position
This commit is contained in:
parent
9c0dcf12f3
commit
01cfdf9f43
|
|
@ -106,10 +106,10 @@ function global:__zoxide_z {
|
||||||
elseif ($args.Length -eq 1 -and ($args[0] -eq '-' -or $args[0] -eq '+')) {
|
elseif ($args.Length -eq 1 -and ($args[0] -eq '-' -or $args[0] -eq '+')) {
|
||||||
__zoxide_cd $args[0] $false
|
__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
|
__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
|
__zoxide_cd $args[0] $false
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue