Skip to content

FIX: Nushell + Starship example updated to work with latest Nu syntax#2183

Open
TheRealBunbury wants to merge 1 commit into
nushell:mainfrom
TheRealBunbury:patch-1
Open

FIX: Nushell + Starship example updated to work with latest Nu syntax#2183
TheRealBunbury wants to merge 1 commit into
nushell:mainfrom
TheRealBunbury:patch-1

Conversation

@TheRealBunbury

Copy link
Copy Markdown

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.

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.
Comment thread cookbook/setup.md
# 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 }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the parentheses are necessary, are they?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants