omp packages

pi-nushell0.2.0

A Pi extension to replace Bash with nushell.

grfwings Published 16 days ago Unlicense ~310 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-nushell

A pi extension for nushell users.

Pi-nushell does two things:

  • adds a nu tool for executing nushell commands, and disables the bash tool.
  • replaces the !command interpreter with nushell.

The nu tool matches pi's built-in bash tool behavior:

  • runs in the current session working directory.
  • streams combined standard output and standard error.
  • supports cancellation and optional timeouts.
  • reports nonzero exit codes as tool errors.
  • limits output to the last 2,000 lines or 50 KB.
  • saves complete output to a temporary file when truncation occurs.
  • exposes PI_SESSION_ID, PI_SESSION_FILE, PI_PROVIDER, PI_MODEL, and PI_REASONING_LEVEL to the command.
  • uses command-string mode, meaning it does not load configuration files like config.nu.

Pi prepends shellCommandPrefix to user commands before execution, so any configured prefix must use Nushell syntax (or be unset).

Requirements

  • nushell

Install

pi install npm:pi-nushell

For development, load the extension directly:

pi -e ./index.ts