From 09ef48306800ff3930b5ef054032672ec7f4a917 Mon Sep 17 00:00:00 2001 From: The Real Bunbury Date: Tue, 16 Jun 2026 10:53:26 -0700 Subject: [PATCH] FIX: Nushell + Starship example updated to work with latest Nu syntax The Nushell overlays + Starship prompt example required changes to work properly with the latest version of Nushell. The recommended fix has been tested and now works properly. --- cookbook/setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/setup.md b/cookbook/setup.md index 5fd78698397..d441525dac8 100644 --- a/cookbook/setup.md +++ b/cookbook/setup.md @@ -106,7 +106,7 @@ currently activated. ```nu # set NU_OVERLAYS with overlay list, useful for starship prompt $env.config.hooks.pre_prompt = ($env.config.hooks.pre_prompt | append {|| - let overlays = overlay list | slice 1.. + let overlays = overlay list | where ($it.active == true) | slice 1.. | each {|overlay| $overlay.name } if not ($overlays | is-empty) { $env.NU_OVERLAYS = $overlays | str join ", " } else {