Brief: Nushell is a unique type of shell that provides easy-to-read error messages and offers cross-platform support. Find out more about it here.
Even if you are not interested in using the terminal, the Linux terminal often makes some of the heavy lifting more effortless and lets you fix stuff. So, is safe to say that the Linux terminal is pretty powerful if you know what you’re doing.
And that is true! But the problem appears when you get an error. If you don’t have enough experience using it, you won’t know how to solve it.
While the error messages try to convey the best meaning of the problem, not every user can easily decode the fix. It usually takes a bit of research for beginners. But, if the error can have more clarity, the user could be able to fix it sooner.
Not just limited to the error message, the structure of the output you get in your terminal to browse files, for example, is not the prettiest.
Do you see what I mean? Of course, this could become more complex when you have more files of distinct types. And, you get no idea about file permissions, groups, etc with the output you get with the basic ls command.
That’s where Nushell tries to solve the problem.
Nushell: A Shell That Provides User-Friendly Output by Default
Let me give you an example, imagine you want to list only the output with a type equal to the file inside your home directory, including the hidden files. Well, to achieve this it is as easy as just typing the following command:
ls -a | where type == 'file'
Observe how clear and simple its syntax is; now imagine how easy it could be to find the process and name ID, its status, and CPU or memory consumed with the Nushell. It’s part of its magic!
It tries its best to provide user-friendly output for the commands you enter, organized in a specific structure.
Features of Nushell
As per the official information available, some of its most popular features include:
- Pipelines to control any OS. Nu works on Linux, macOS, and Windows. In other words, being a flexible cross-platform shell with a modern feel.
- Everything is data. Nu pipelines use structured data, so you can safely select, filter, and sort the same way every time.
- Powerful plugins. It’s easy to extend Nu functionalities using a powerful plugin system.
- Easy to read error messages. Nu operates on typed data, so it catches bugs that other shells don’t. And when things break, Nu tells you exactly where and why.
- Clean IDE support.
You can take a look at its official documentation for a thorough look at its features and usage.
Installing Nushell in your system
Unfortunately, if you’re an Ubuntu user like me, you won’t find an apt repository to install Nushell. But, you can build it by installing the required dependencies, as per its instructions on GitHub.
Fortunately, there is a way to install it on any distro, using Homebrew. Head to its official website to explore more installation options.
You can refer to our tutorial on installing and using Homebrew Package Manager on Linux. Once you successfully set it up on Linux, you need to type in the following command to install Nushell:
brew install nushell
Once the process is finished, just type
nu to start the Nushell shell. That’s it!
If you’d like to set Nushell as your default shell, you can do it with the command chsh, but remember, it is still in development, that’s why we do not recommend it for everyday use.
However, you can explore more about it on its website or the GitHub page before you decide to try it.
What do you think about this interesting shell? Let me know your thoughts in the comments down below.