I switched from Zsh to Nushell. It's a beautiful shell, I'm never going back!
30 January, 2025
I switched from zsh to nushell. It is so good wow, I've been using it for a couple months as an interactive shell but recently just started writing scripts with it. I'm wondering why I didn't do it sooner!
- No need to memorize flags for commands anymore. I dont need a
--reverse
for every command. Instead, if I want to reverse something I just pipe my data with| reverse
. Instead of memorizing N flags for M commands, memorize N commands and compose with any command. Elegant. - Every nushell command reads like plain english. Sometimes I forget I'm even talking to a computer. "What's the largest file in the current directory?" =
ls | sort-by size | reverse | first
= List all files, sort them by size from largest to smallest, then take the first file. - No more
sed
andawk
. Nushell's string manipulation is a pleasure to work with. Thestr
command can even convert text between snake_case, PascalCase, camelCase etc. - Data manipulation on steroids. It works on so many file formats, with dozens of utility functions to get output of data.
- Each function does one thing and does it well. Wait, isn't this Unix's philosophy? Yes, Nushell feels like what we should have had from the beginning. It feels a lot "more UNIX" than bash or zsh
- it ships with its own tools. no need to worry about stuff like
curl
not being available. you always havehttp get
if you can execute the script - Performance. It feels a lot snappier than zsh.
- The scripting language is just expressive, beautiful and so much easier to read and write than bash is.
- It's cross platform!! Huge deal for people who need to use their shell on Windows.
- Beautiful help pages. Everything is colored with usage examples for each command.
More people should be using nushell! In my opinion it is really underrated and I encourage you to give it a go