Skip to content

nu: Offer an optional Windows Terminal profile helper #8421

Description

@maphew

Package

nu

Current behavior

The manifest installs Nushell and creates a helper for registering bundled plugins, but Windows Terminal does not discover Nushell automatically. Users must create and maintain a profile themselves.

Proposed change

Have post_install generate an opt-in PowerShell helper alongside nu.exe, following the existing core-plugin helper pattern. Running the helper would:

  • add or update a Nushell profile as a per-user Windows Terminal JSON fragment;
  • write the fragment under %LOCALAPPDATA%\Microsoft\Windows Terminal\Fragments\Nushell using UTF-8;
  • point the profile at the stable Scoop nu.exe shim rather than a versioned install directory;
  • support removing the generated fragment;
  • leave Windows Terminal's settings.json untouched.

The manifest's notes would show the command to run. Installation and upgrades would not alter Terminal configuration unless the user explicitly invokes the helper. Re-running it would update the same fragment rather than create duplicates.

Windows Terminal documents JSON fragments as the supported installer integration for applications installed from the web:
https://learn.microsoft.com/windows/terminal/json-fragment-extensions

Would this opt-in helper be acceptable in Main? If approved, I can prepare and test the manifest change on stable, preview, and unpackaged Windows Terminal installations where available.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions