Fundamentals 6 min read

How to Install and Set Up Nushell – A Modern Rust‑Based Shell

This guide walks you through installing the Rust‑written Nushell on Linux and macOS, covering prerequisite tools, binary download, extraction, PATH configuration, plugin setup, user creation, default shell change, and a quick test of basic commands.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
How to Install and Set Up Nushell – A Modern Rust‑Based Shell

Nushell is a modern, cross‑platform shell written in Rust that aims to provide a flexible, data‑aware command line experience, allowing you to combine traditional CLI tools with structured data and offering a polished user experience.

Create a modern, flexible cross‑platform shell.

Mix command‑line applications with understandable data structures.

Deliver a user‑experience comparable to modern CLI applications.

As of now, Nushell has earned 13.9K stars on GitHub.

Step 1: Install Development Tools

Ubuntu / Debian:

sudo apt update
sudo apt install pkg-config libssl-dev -y
sudo apt install libxcb-composite0-dev libx11-dev -y

RHEL‑based systems:

sudo yum install libxcb openssl-devel libX11-devel -y

macOS (using Homebrew):

brew install openssl cmake

Step 2: Install Nushell on Linux

Download the latest binary archive:

cd /tmp
curl -s https://api.github.com/repos/nushell/nushell/releases/latest \
  | grep browser_download_url | cut -d '"' -f4 \
  | grep '\linux.tar.gz' | wget -i -

Extract the archive: tar -xvf nu_*_linux.tar.gz Move the binary to your PATH: sudo mv nu_*_linux/nushell-*/nu /usr/local/bin Move plugins to your PATH (optional but recommended):

sudo mv nu_*_linux/nushell-*/nu_plugin* /usr/local/bin

Fedora users can install via COPR:

sudo dnf copr enable atim/nushell -y && sudo dnf install nushell -y

Step 3: Install Nushell on macOS

Binary installation via Homebrew: brew install nushell Manual binary installation:

cd /tmp
curl -s https://api.github.com/repos/nushell/nushell/releases/latest \
  | grep browser_download_url | cut -d '"' -f4 \
  | grep '\macOS.zip' | wget -i -
unzip nu_*_macOS.zip
sudo mv nu_*_macOS/nushell-*/nu /usr/local/bin
sudo mv nu_*_macOS/nushell-*/nu_plugin* /usr/local/bin

Step 4: Set Nushell as the Default Shell

Create a new user (example: techviewleo): sudo adduser techviewleo Set the user's default shell to Nushell: sudo chsh -s /usr/local/bin/nu techviewleo Switch to the new account and verify:

su - techviewleo
# You should see the Nushell prompt, e.g., /home/techviewleo>

Test the Shell

Run a simple command such as ls to see Nushell’s output.

Nushell demo GIF
Nushell demo GIF

For more information, visit the official repository: https://github.com/nushell/nushell .

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

RustShellInstallationmacOSNushell
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.