From 4f475a75cbac1e72ea724f380e477d644143ec3a Mon Sep 17 00:00:00 2001 From: Lily Mara <6109875+lily-mara@users.noreply.github.com> Date: Fri, 14 Apr 2023 11:35:05 -0700 Subject: [PATCH] Nushell: use new lambda syntax --- templates/nushell.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nushell.txt b/templates/nushell.txt index 27310c0..9e575b2 100644 --- a/templates/nushell.txt +++ b/templates/nushell.txt @@ -18,7 +18,7 @@ if (not ($env | default false __zoxide_hooked | get __zoxide_hooked)) { let-env config = ($env | default {} config).config let-env config = ($env.config | default {} hooks) let-env config = ($env.config | update hooks ($env.config.hooks | default [] pre_prompt)) - let-env config = ($env.config | update hooks.pre_prompt ($env.config.hooks.pre_prompt | append { + let-env config = ($env.config | update hooks.pre_prompt ($env.config.hooks.pre_prompt | append { || zoxide add -- $env.PWD })) {%- else if hook == InitHook::Pwd %}