From 93be4dcf9e73d12966731bae47ba201d93a9ded7 Mon Sep 17 00:00:00 2001 From: trivernis Date: Mon, 2 Jan 2023 10:57:07 +0100 Subject: [PATCH] Update zoxide --- private_dot_config/nushell/zoxide.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private_dot_config/nushell/zoxide.nu b/private_dot_config/nushell/zoxide.nu index 926851c..2a808ee 100644 --- a/private_dot_config/nushell/zoxide.nu +++ b/private_dot_config/nushell/zoxide.nu @@ -23,7 +23,7 @@ let-env config = ($env.config | update hooks.env_change.PWD ($env.config.hooks.e def-env __zoxide_z [...rest:string] { # `z -` does not work yet, see https://github.com/nushell/nushell/issues/4769 let arg0 = ($rest | append '~').0 - let path = if (($rest | length) <= 1) && ($arg0 == '-' || ($arg0 | path expand | path type) == dir) { + let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) { $arg0 } else { (zoxide query --exclude $env.PWD -- $rest | str trim -r -c "\n")