Fix tests

This commit is contained in:
Ajeet D'Souza 2022-04-13 12:55:30 +05:30
parent 39fa1aa8df
commit 39ae67ac98
1 changed files with 1 additions and 1 deletions

View File

@ -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