From b021a4a2171853c2311589a2d281059b86a0095e Mon Sep 17 00:00:00 2001 From: "A. Taha Baki" Date: Sat, 29 Jul 2023 07:28:11 +0300 Subject: [PATCH] template: fix for nushell 0.83 --- templates/nushell.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nushell.txt b/templates/nushell.txt index c4894da..da08982 100644 --- a/templates/nushell.txt +++ b/templates/nushell.txt @@ -41,7 +41,7 @@ if (not ($env | default false __zoxide_hooked | get __zoxide_hooked)) { # Jump to a directory using only keywords. def-env __zoxide_z [...rest:string] { let arg0 = ($rest | append '~').0 - let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) { + let path = if ((($rest | str length) | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) { $arg0 } else { (zoxide query --exclude $env.PWD -- $rest | str trim -r -c "\n")