Live data from Hacker News

Nushell.sh ls | where size > 10mb | sort-by modified

nushell.sh

211–215 of 215 posts

Re: Nushell.sh ls | where size > 10mb | sort-by modified

#211

Earlier quoted context omitted.

Fish is that shell for me. I tried nushell and zsh. zsh required a bunch of setup and nushell was too young. Whereas fish has really great defaults and enough of support to just go and have fun.

Have you tried oh-my-zsh? It's what got me to install zsh on all my servers, even at work. Just run their setup script, let it change your default shell and set your preferred theme in the config.

I have tried oh-my-zsh, but still fish was easier to get started with. Especially with autocompletions.

However oh-my-zsh was pleasant to use as well!

Re: Nushell.sh ls | where size > 10mb | sort-by modified

#212
post #193
post #5

What's the advantage of this over PowerShell?

Just for reference, the PowerShell version of this would be: ls | where Length -gt 1mb | sort LastWriteTime

Heads-up: if current directory contains other directories, this will fail. You'll need to adjust the filter:

    ls | where { -not $_.PSIsContainer -and $_.Length -gt 1mb } | sort LastWriteTime

Re: Nushell.sh ls | where size > 10mb | sort-by modified

#213
post #127

Earlier quoted context omitted.

> What if someone starts from a clean slate. Which shell is better? Then they learn the better and end up having to learn bash anyway coz that's what runs on remote machines. There is also not that much to be gained. Common easy tasks might be easier to learn but just few percent faster in the end. Harder ones are faster by one-off script in "real" programming language most of the time. Harder repeatable one should n…

> coz that's what runs on remote machines Is that actually still an issue these days with Docker containers and what not? How often do you access a remote server via SSH where you share an account with your colleagues and cannot install another shell next to bash? (So that bash could still be the default but you could switch on the fly.)

>How often do you access a remote server via SSH where you share an account with your colleagues and cannot install another shell next to bash?

About... almost every day?

Re: Nushell.sh ls | where size > 10mb | sort-by modified

#214
post #42

Earlier quoted context omitted.

There are plenty of strongly typed memory safe languages. In fact I think those are the majority of popular languages.

Of course the person you're replying to is talking about languages without a garbage collector. Systems languages with zero cost abstractions.

But why? There is nothing about a shell that requires zero cost abstractions or no gc. It farms all of its work out to other executables. A shell could be written in literally any language.
Post reply on HN