Esta página se muestra en inglés. Una traducción al español está en curso.
ConfigsApr 12, 2026·2 min de lectura

Nushell — A New Type of Shell for the Modern Era

Nushell is a new type of shell that treats data as structured tables rather than plain text. Pipelines operate on structured data (tables, records, lists) instead of raw strings. Built in Rust with cross-platform support. Think of it as a shell meets a spreadsheet.

Introducción

Nushell (nu) is a new type of shell written in Rust. Instead of treating everything as text strings, Nushell pipelines operate on structured data — tables, records, lists, and typed values. Think of it as a shell that understands data formats (JSON, CSV, YAML, TOML, SQLite) natively and lets you query them like a database.

What Nushell Does

  • Structured pipelines — data flows as tables, not text
  • Built-in data formats — JSON, CSV, YAML, TOML, XML, SQLite, Parquet
  • Type system — strings, ints, floats, booleans, dates, durations, file sizes
  • ls / ps / sys — system commands return structured data
  • HTTP clienthttp get/post with auto-parsing
  • SQL-like queries — where, select, group-by, sort-by, math
  • Custom commandsdef with typed parameters
  • Modules — organize code into modules
  • Plugins — extend via compiled plugins
  • Completions — context-aware tab completion

Architecture

Rust binary. Parser produces an AST, engine evaluates pipelines. Each command produces a PipelineData value (table, record, string, etc.). Plugins communicate via JSON-RPC.

Comparison

Shell Data Model Language Cross-platform
Nushell Structured tables Own Yes
Bash/Zsh Text streams POSIX sh Unix
Fish Text streams Own Unix
PowerShell .NET objects Own Yes
Xonsh Python objects Python Yes

FAQ

Q: Can it replace bash? A: For interactive use, yes. But POSIX shell scripts are not compatible — existing .sh scripts still need bash. Nushell fits new scripts and daily interaction.

Q: Similar to PowerShell? A: Similar in philosophy (structured data pipelines) but different in implementation. Nushell is lighter, cross-platform native, and has a more concise type system.

Q: Performance? A: Rust implementation — fast startup, fast pipeline processing. Slightly slower than awk/sed on very large files but 100x more readable.

Sources

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados