Repository navigation
Faster startup: chained fixups on Apple silicon, a cheaper banner, and async prompt pushes that survive - #19236
Merged
Merged
Conversation
…d async prompt pushes that survive
kronberger-droid
added a commit
to kronberger-droid/nushell
that referenced
this pull request
Nov 13, 2026
…nfig The prompt resolver takes over the `ClosureEvalOnce::try_new` call that nushell#19159 gave `get_prompt_string`, so a prompt closure whose block is gone is still reported instead of panicking. `commandline set-prompt` builds its push as a `PromptContents` the way nushell#19236 does, with `vi_visual` added. The deprecation note in `doc_config.nu` names 0.118.0, the release this now lands in.
kronberger-droid
added a commit
to kronberger-droid/nushell
that referenced
this pull request
Nov 13, 2026
…olor-reset `NushellPrompt` no longer owns its segments since nushell#19236, thus the colors ask the shared `PromptState` whether a side was supplied.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Three independent changes make the REPL ready to type into sooner. With the default config, launching
nuuntil the first prompt is drawn drops from 15.7 ms to 13.1 ms (−17%).$nu.startup-timeis measured the same way as before.Measurements:
~$nu.startup-time"cargo:rustc-link-arg-bins=-Wl,-fixup_chains"bannercheaper (all architectures)User-facing changes (Release notes)
Faster startup and reliable prompt updates
Nushell starts faster and uses about 3 MiB less memory per process on Apple silicon Macs. On all architectures, the startup banner avoids computing the welcome message when it only prints the startup time. Measured startup improvements with the default config are shown below;
$nu.startup-timeis measured the same way as before.~$nu.startup-timeOn all architectures,
date to-timezonenow accepts IANA time zone names in any letter case, for exampledate now | date to-timezone america/new_york. Previously, some lowercase names were rejected as invalid.Prompt updates from background jobs using
commandline set-promptare no longer lost when the jobs finish before the prompt is drawn. This applies to jobs started frompre_promptorenv_changehooks or prompt closures such as$env.PROMPT_COMMAND, on all architectures. Callingcommandline set-promptdirectly in those hooks or closures also updates that prompt, overriding the corresponding segment's prompt-variable value rather than being replaced by subsequent prompt evaluation.Additional notes