What is the advantage over powershell?
It's not Microsoft based?
Nushell.sh ls | where size > 10mb | sort-by modified
51–60 of 215 posts
Re: Nushell.sh ls | where size > 10mb | sort-by modified
#52For 99.99% of what I use a shell for, Nushell doesn't do anything that I can't do with a regular shell. Maybe just because I'm used to shells/sed/awk/etc.
For the few cases where Nushell could be useful, I can usually do the same thing with Vim/Emacs/VSCode or a trivial Python/Ruby script.
Re: Nushell.sh ls | where size > 10mb | sort-by modified
#53Re: Nushell.sh ls | where size > 10mb | sort-by modified
#54Earlier quoted context omitted.
To be honest, they have good reason. Being written in a strongly typed, memory-safe language is a huge advantage. Obviously it's not the primary thing to look out for, but I do prefer tools that are written in it.
There are plenty of strongly typed memory safe languages. In fact I think those are the majority of popular languages.
Re: Nushell.sh ls | where size > 10mb | sort-by modified
#55This looks extremely interesting! Is anyone using it as a daily driver on Linux? How has your experience been?
I second this question. I was using FISH for quite a while and really liking it, but there was always something that it was incompatible with and had to eventually give it up.
Returned back (from zsh) to fish this year and am super happy. Still the best built-in completion / history auto-suggest that I've seen in any shell so far, and super-fast at that.
Most importantly, barely any config needed (no needs for oh-my-zsh, prezto and all of those).
Re: Nushell.sh ls | where size > 10mb | sort-by modified
#56Re: Nushell.sh ls | where size > 10mb | sort-by modified
#57[zsh]$ ls -l *(Lm+10om) zsh supports extended globs, this says: -l give me a long listing “*(…)” of any file Lm+10 who’s size “L” in megabytes “m” is greater than 10 “om” ordered by modification ascending
Cool but that’s as opaque and hard to understand as sacrificing a goat to order ls output. It’s of course possible to do with existing shells, but it’s impossible to argue that it’s a clear
Or are you optimising for getting your thoughts transcribed to the machine as quickly as possible. It’s usually this case for me.
I tend to maintain a huge shell history so i really like the terse format for quickly filtering down my historical commands.
Writing shell scripts might be a good case for the longer form style although bourne-esque syntax is burned into my fingertips after all these years that long form is not going to be useful to me.
Re: Nushell.sh ls | where size > 10mb | sort-by modified
#58Earlier quoted context omitted.
To be honest, they have good reason. Being written in a strongly typed, memory-safe language is a huge advantage. Obviously it's not the primary thing to look out for, but I do prefer tools that are written in it.
There are plenty of strongly typed memory safe languages. In fact I think those are the majority of popular languages.
Re: Nushell.sh ls | where size > 10mb | sort-by modified
#59[zsh]$ ls -l *(Lm+10om) zsh supports extended globs, this says: -l give me a long listing “*(…)” of any file Lm+10 who’s size “L” in megabytes “m” is greater than 10 “om” ordered by modification ascending
Wouldn't you want to use 'ls -lt' (sort by time) (or possibly with '-r' if you really want oldest first)? (I.e., does 'om' sort the glob passed to 'ls', which it will then reorder, or does zsh do something magic with the 'ls' command?)
This globbing functionality in zsh is separate from the ls command, so no ls magic here, but the ls builtin in zsh does have some useful extras in it all the same
Re: Nushell.sh ls | where size > 10mb | sort-by modified
#60Earlier quoted context omitted.
I assume the parent comment did not make fun of nushell advertizing this, but instead about the rust community advertizing itself all the time.
To be honest, they have good reason. Being written in a strongly typed, memory-safe language is a huge advantage. Obviously it's not the primary thing to look out for, but I do prefer tools that are written in it.
Great point, C# is a strongly typed and memory-safe language if you don't use unsafe. So this really is a huge advantage for PowerShell.