This is a full-featured replacement for many of your shell’s built-ins.
Jonathan Turner, Andrés Robalino, and Yehuda Katz joined the show to talk about Nushell, or just Nu for short. It’s a modern shell for the GitHub era. It’s written in Rust, and it has the backing of some of the greatest minds in open source. We talk through what it is, how it works and cool things you can do with it, why Rust, ideas for the future, and ways for the community to get involved and contribute.
A modern, GitHub-era shell written in Rust.
Today, we’re introducing a new shell, written in Rust. It draws inspiration from the classic Unix philosophy of pipelines, the structured data approach of PowerShell, functional programming, systems programming, and more.
It’s called Nushell, or just Nu for short.
They have a work-in-progress book for nushell too.
Jessie Frazelle spells out why she loves the
| command. Here’s the brief:
In brief, the
|allows for the output of one program (on the left) to become the input of another program (on the right). It is a way of connecting two commands together.
Did you know pipes pre-dated Unix?! 1964! Lots of good stuff in this post, highly worth the click.
I’m a looooong time rvm user, but I don’t have a similar tool for my Elixir and Node installs.
asdf looks like a potentially nice way to unify all of my language/runtime versioning under a single tool.
It’s amazing what a little bit of grease can do to the skids. Put this
rb file in your
$PATH and get ergonomic access to all of Ruby’s text processing skills. The very first example sold me:
docker ps | rb drop 1 | rb -l split` # ubuntu # postgres
Max wrote an excellent intro (for his past self) to using the Shell. He covers what it is, common actions, package managers, dotfiles, aliases, and more. Check this out as a refresher, or send it to a friend who needs a nudge in the right direction. ✊
Safia Abdalla continues her excellent series of “what happens when” posts, this time tackling
One thing I’m sure everyone has done on the command line is to use the
!!shortcut to run the command run previously with sudo.
Don’t be so sure, Safia. It took me literally years of command-lining around before I learned that trick. I bet you taught more than a few people about its existence with this very article. 👌
Graphpath is a shining example of the Unix philosophy’s virtues.
it’s just a shell script using standards tools (route, arp and ifconfig on *BSD and ip on Linux)
The results? Super useful.
Yesterday’s coverage of CloudFlare’s new DNS service (18.104.22.168) was met with a few cries of “SLOWER FOR ME”!
Is it faster or slower in your neck of the woods? You can find out easily by running the linked script. CloudFlare wins easily from where I’m sitting (see below). Off to go change my settings!
Register an alias like
goto -r dev /home/jerod/dev. From then on out, you can just
goto dev. Lazarus says:
It comes with a nice auto-completion script so that whenever you press the tab key after the
gotocommand, bash or zsh prompts with suggestions for the available aliases.