Author: Linux That's how to learn
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:
1. Create a modern, flexible, cross platform Shell 2. Allows you to mix and match command-line applications with shells that understand data structures 3. With user experience optimization provided by modern command-line applications
At present, NuShell has marked 13.9K on Github and accumulated 631 branches (details: 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.
#Install developer tools
Ubuntu / Debian:
sudo apt updatesudo apt install pkg-config libssl-dev -ysudo 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
#Installing Nushell on Linux
Download the latest binary Archive:
cd /tmpcurl -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
#Installing 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 /tmpcurl -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
#Run Nushell in Docker
If you are a windows user, it is recommended that you run the experience directly in Docker. A few commands are completed. The commands are as follows:
docker run -it quay.io/nushell/nu:latest
#Set user Shell to Nushell
Create a new user named techviewleo:
$ sudo adduser techviewleoAdding 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 successfullyChanging the user information for techviewleoEnter the new value, or press ENTER for the defaultFull 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>
Operation effect display:
Finally, attach the nushell address:
https://github.com/nushell/nushell
Hello, I'm Tan Qingbo, the factory director. I'm a doctoral student in the computer department of Harbin Institute of technology. I used to be a learning slag and now a learning bully. I've won various programming awards.
He has studied for 20 years, from rural areas to doctor C9, with a sideline income of more than 1 million, Click the blue word to see my growth path.
At the same time, I also know the blogger: Tan Qingbo, who shares the cognition of high-quality programmers, learning materials and technical dry goods every day. Welcome to watch.