nushell

Provide context-aware command and external completion support for Nushell.

1.4k|36|Updated Mar 17, 2020
One-click install
npx skills add https://github.com/carapace-sh/carapace --skill nushell-carapace-sh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nushell
Source: https://github.com/carapace-sh/carapace/tree/main/skills/nushell
Command: npx skills add https://github.com/carapace-sh/carapace --skill nushell-carapace-sh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Nushell's interactive shell and scripting environment benefits from accurate, context-aware command completion, including support for external completers to extend PATH-based and module-based suggestions.

Core Features & Use Cases

  • AST-driven completion for commands, subcommands, flags, and arguments in Nushell.
  • External completers integration (e.g., Carapace) via JSON to augment built-in suggestions.
  • Seamless Reedline menu support for polished user experience during interactive sessions.

Quick Start

Try enabling Nushell external completions with Carapace to view context-aware suggestions in the shell.

Frequently Asked Questions about nushell

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get context-aware command completion in Nushell?

Nushell external completers are integrated via a JSON-based protocol that bridges external completion engines with the shell. This mechanism augments built-in suggestions with PATH-based and module-based external command completions.

How does Nushell resolve subcommands and flags during interactive sessions?

Reedline menu support is integrated directly to provide a polished completion experience during interactive shell sessions. It renders the typed, scoped suggestions generated by the AST-driven completion engine seamlessly within the terminal interface.

Can I use Carapace to extend Nushell external completions?

Nushell external completers are integrated via a JSON-based protocol that bridges external completion engines with the shell. This mechanism augments built-in suggestions with PATH-based and module-based external command completions.

What is the mechanism for applying external completers in Nushell scripts?

The mechanism for applying external completers in Nushell scripts uses a JSON-based protocol to pass completion requests and receive typed suggestions. The CompleterWrapper mechanism processes these requests to augment built-in command discovery.