Today, I want to introduce a productivity tool (force artifact) Shell. It is called NuShell. It is written in Rust. While improving security, the Bug rate is also reduced. NuShell focuses on achieving the following goals:
- Create a modern, flexible, cross platform Shell
- Allows you to mix and match command-line applications with shells that understand data structures
- With user experience optimization provided by modern command-line applications
At present, NuShell has marked 13.9K on Github and accumulated 631 branches (details: https://github.com/nushell/nushell )
The easiest and quickest way to run NuShell on Linux / macOS is to install it from crites.io or download the pre built binaries from our Github release page.
The ideal installation method for any Linux distribution is the binary method. We will use the curl tool to get the latest version, download and extract the file to get the Nushell binary.
Step 1: install developer 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 system:
sudo yum install libxcb openssl-devel libX11-devel -y
Apple system:
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 '"' -f 4 | grep '\linux.tar.gz' | wget -i -
Unzip the downloaded file:
tar -xvf nu_*_linux.tar.gz
Copy binaries to your PATH:
sudo mv nu_*_linux/nushell-*/nu /usr/local/bin
Nushell will look for the plug-in in your PATH at startup. Although nushell has some functionality without them, to get full functionality, you need to copy them to your PATH in order to load them.
sudo mv nu_*_linux/nushell-*/nu_plugin* /usr/local/bin
Fedora users can use COPR repo to install Nushell:
sudo dnf copr enable atim/nushell -y && sudo dnf install nushell -y
Step 3: install Nushell on macOS
For binary installation methods, use brew:
$ brew install nushell
Install manually from binaries
Run the following command on the macOS system to download the latest version of Nushell:
cd /tmp curl -s https://api.github.com/repos/nushell/nushell/releases/latest | grep browser_download_url | cut -d '"' -f 4 | grep '\macOS.zip' | wget -i -
Unzip the downloaded file:
unzip nu_*_macOS.zip
Copy nu binaries to your PATH:
sudo mv nu_*_macOS/nushell-*/nu /usr/local/bin
Copy Nu plug-in:
sudo mv nu_*_macOS/nushell-*/nu_plugin* /usr/local/bin
Step 4: set user Shell to Nushell
Create a new user named techviewleo:
$ sudo adduser techviewleo Adding user `techviewleo' ... Adding new group `techviewleo' (1000) ... Adding new user `techviewleo' (1000) with group `techviewleo' ... Creating home directory `/home/techviewleo' ... Copying files from `/etc/skel' ... New password: Retype new password: passwd: password updated successfully Changing the user information for techviewleo Enter the new value, or press ENTER for the default Full Name []: Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] y
Set the user default shell to Nu:
sudo chsh -s /usr/local/bin/nu techviewleo
Switch to the user account you created:
$ su - techviewleo Password: Welcome to Nushell 0.28.0 (type 'help' for more info) /home/techviewleo>
Test how the ls command works in Nushell:
$ su - techviewleo Password: Welcome to Nushell 0.28.0 (type 'help' for more info) /home/techviewleo>
Finally, attach the nushell address: https://github.com/nushell/nushell