Literal cd for paths
This commit is contained in:
parent
0ecfbf7e68
commit
3904026d74
|
|
@ -89,12 +89,12 @@ function __zoxide_z {
|
||||||
if ($args.Length -eq 0) {
|
if ($args.Length -eq 0) {
|
||||||
__zoxide_cd ~ $true
|
__zoxide_cd ~ $true
|
||||||
}
|
}
|
||||||
elseif (
|
elseif ($args.Length -eq 1 -and ($args[0] -eq '-' -or $args[0] -eq '+')) {
|
||||||
$args.Length -eq 1 -and
|
|
||||||
(($args[0] -eq '-' -or $args[0] -eq '+') -or (Test-Path $args[0] -PathType Container))
|
|
||||||
) {
|
|
||||||
__zoxide_cd $args[0] $false
|
__zoxide_cd $args[0] $false
|
||||||
}
|
}
|
||||||
|
elseif ($args.Length -eq 1 -and (Test-Path $args[0] -PathType Container)) {
|
||||||
|
__zoxide_cd $args[0] $true
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
$result = __zoxide_pwd
|
$result = __zoxide_pwd
|
||||||
if ($null -ne $result) {
|
if ($null -ne $result) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue