Fix tests
This commit is contained in:
parent
39fa1aa8df
commit
39ae67ac98
|
|
@ -43,7 +43,7 @@ echo "zoxide: PWD hooks are not supported on Nushell.\nUse `zoxide init nushell
|
||||||
|
|
||||||
# Jump to a directory using only keywords.
|
# Jump to a directory using only keywords.
|
||||||
def-env __zoxide_z [...rest:string] {
|
def-env __zoxide_z [...rest:string] {
|
||||||
# `z -` doesn't work yet, see https://github.com/nushell/nushell/issues/4769
|
# `z -` does not work yet, see https://github.com/nushell/nushell/issues/4769
|
||||||
let arg0 = ($rest | append '~').0
|
let arg0 = ($rest | append '~').0
|
||||||
let path = if ($rest | length) <= 1 && ($arg0 | path expand | path type) == dir {
|
let path = if ($rest | length) <= 1 && ($arg0 | path expand | path type) == dir {
|
||||||
$arg0
|
$arg0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue