How to Install and Use Nushell – A Modern Rust‑Based Cross‑Platform Shell
This guide explains what Nushell is, its key goals, and provides step‑by‑step instructions for installing the Rust‑written shell on Linux (Ubuntu/Debian, RHEL, Fedora), macOS, and Docker, plus how to set it as the default user shell.
Nushell is a modern, cross‑platform shell written in Rust that aims to create a flexible, data‑oriented command‑line experience with improved safety and reduced bugs.
Installation on Linux
Ubuntu / Debian :
sudo apt update
sudo apt install pkg-config libssl-dev -y
sudo apt install libxcb-composite0-dev libx11-dev -yRHEL‑based systems :
sudo yum install libxcb openssl-devel libX11-devel -ymacOS (Homebrew) :
brew install openssl cmakeInstall Nushell Binary
Download the latest release from GitHub, extract the archive, and move the binary and plugins to a directory in PATH:
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 -
tar -xvf nu_*_linux.tar.gz
sudo mv nu_*_linux/nushell-*/nu /usr/local/bin
sudo mv nu_*_linux/nushell-*/nu_plugin* /usr/local/binFedora users can install via the COPR repository:
sudo dnf copr enable atim/nushell -y && sudo dnf install nushell -yInstallation on macOS
Using Homebrew: brew install nushell Or download the binary manually, unzip, and copy the files:
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/binRun Nushell in Docker
docker run -it quay.io/nushell/nu:latestSet Nushell as the Default Shell for a User
Create a new user and change its login shell to Nushell:
sudo adduser techviewleo
sudo chsh -s /usr/local/bin/nu techviewleo
su - techviewleo # you are now in NushellAfter switching, you can test commands such as ls to see the Nushell behavior.
For more information and the source code, visit the official repository: https://github.com/nushell/nushell
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Liangxu Linux
Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
