The Future of Shells with Nushell! Shell + Data + Programming Language
Discover the power of Nushell! 🌟 Learn how to set up and use this innovative shell that combines the best of traditional shells with a fully-typed scripting language. We’ll explore:
– Setting up Nushell and Docker
– Running commands in Zshell and Nushell
– Filtering and sorting data with ease
– Using structured data for efficient data manipulation
– Auto-complete and error detection features
– Running external commands like `kubectl`
– Writing and executing Nushell scripts
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Sponsor: Mend
🔗 Renovate:
🔗 Renovate Community:
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
#Nushell #CommandLine #DataScripting #TechGuide
Consider joining the channel:
▬▬▬▬▬▬ 🔗 Additional Info 🔗 ▬▬▬▬▬▬
➡ Transcript and commands:
🔗 Nushell:
▬▬▬▬▬▬ 💰 Sponsorships 💰 ▬▬▬▬▬▬
If you are interested in sponsoring this channel, please visit for more information. Alternatively, feel free to contact me over Twitter or LinkedIn (see below).
▬▬▬▬▬▬ 👋 Contact me 👋 ▬▬▬▬▬▬
➡ Twitter:
➡ LinkedIn:
▬▬▬▬▬▬ 🚀 Other Channels 🚀 ▬▬▬▬▬▬
🎤 Podcast:
💬 Live streams:
▬▬▬▬▬▬ ⏱ Timecodes ⏱ ▬▬▬▬▬▬
00:00 Introduction to Nushell
00:59 Pretty Outputs with Nushell
02:22 Mend Renovate (sponsor)
03:22 Sructured Data In Nushell
11:43 Nushell Auto-Complete, Error Detection
14:00 Nushell Language
16:44 Nushell External Commands
18:27 Nushell Works Everywhere
20:10 Nushell Pros and Cons
[ad_2]
source
What do you think of Nushell?
❯ assist list all files in current folder, show only files that have size greater than 1kb, then sort them by size in descending order
find . -type f -size +1k -exec ls -l {} + | sort -k5,5nr
we do live in a world where LLMs exist
Yeah, as others have said, this very much reminds me of PowerShell. I have been one of those odd guys out for a while now saying how powershell is actually an excellent shell, and now I'm going to have to check this one out.
Unlike nushell's data pipes, PowerShell pipes full objects in between programs. Overall It is great, but it is highly dependent on the ecosystem of other tools supporting that functionality. I love how nushell lets you detect Data from columns and objects and stuff.
For completion of external commands I can recommend Carapace.
It makes setting up completions for common commands (eg.: git) very easy.
ls -l | awk '/^-/{if ($5 > 1024) print $0}' | sort -nrk5
Already trying it. Maybe I'm being blasphemous, but it kind of feels like pwsh as it should've been intended. It's great so far, diggin it from now on
I'm not 100% sold to the idea of using Nushell as my daily driver shell. I don't think I need such complex data processing, even in your example – most likely I'd accept downside of no having e.g. files bigger than 1kB… The things changes drastically if we're talking about a scripting language. And here I could imagine writing a tool that manipulates the data in NS. But here another question raises immediately – if the tool is going be a little more complex, wouldn't it be better to write it completely in Python or even Golang and have something which can be maintained not only the author…?
fd -d1 -tf -S +1K -l | sort -hrk5
It feels like someone taking a better swing at what Powershell was trying to achieve.