I've been trying nushell and words fail me. It's like it was made for actual humans to use! 🤯 🤯 🤯

It even repeats the column headers at the end of the table if the output takes more than your screen...

Trying to think of how to do the same thing with awk/grep/sort/whatever is giving me a headache. Actually just thinking about awk is giving me a headache. I think I might be allergic.

I'm really curious, what's your favorite shell? Have you tried other shells than your distro's default one? Are you an awk wizard or do you run away very fast whenever it's mentioned?

nushell giving nice table outputs to `ls | where type == symlink | sort-by modified` and `ps | where mem > 200MB | sort-by name`
you are viewing a single comment's thread
view the rest of the comments
[–] [S] 3 points 1 year ago (2 children)

Oh I didn't know powershell did that too! It sure beats endless parsing errors

  • source
  • parent
  • hideshow 2 child comments
  • [–] 6 points 1 year ago* (last edited 1 year ago) (1 child)

    That was the foundational concept in powershell; everything is an object. They then went a ruined it with insane syntax and a somewhat logical, but entirely in practiceimpractical verb-noun command structure.

    Nushell is powershell for humans. And helps that it runs across all systems. It’s one of the first things I install.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 1 year ago

    somewhat logical, but entirely in practice verb-noun command structure.

    That's supposed to be "impractical", not "in practice", for others reading along.

    For example, the "proper" command to list a directory is: Get-ChildItem
    The "proper" command to fetch a webpage is: Invoke-WebRequest https://example.com/

    In these particular cases, they do have aliases defined, so you can use ls, dir and curl instead, but ...yeah, that's still generally what the command names are like.

    It's partially more verbose than C#, which is one of the most verbose programming languages out there. I genuinely feel like this kind of defeats the point of having a scripting language in the first place, when it isn't succinct.
    Like, you're hardly going to use it interactively, because it is so verbose, so you won't know the commands very well. Which means, if you go to write a script with Powershell, you'll need to look up how to do everything just as much as with a full-fledged programming language. And I do typically prefer the better tooling of a full-fledged programming language...

  • source
  • parent