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?

  • MonkCanatella@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    2 days ago

    Hm. That sounds delightful. I do think once your script hits a not one liner level of complexity, python is a logical next step.

    Does it provide any useful stuff to Python itself? Would I like, derive any benefit to writing a script in xonsh over pure python?

    • bastion@feddit.nl
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      4 hours ago

      Succinctness, mainly. but honestly, that succinctness call can also be mostly acquired using sh.py, which is what I normally use if I’m using python as a sort of shell scripting - mostly because sh.py is a very minimal requirement, whereas Xonsh has quite a few dependencies.

      addendum: I’d say, if you’re already using Xonsh, and aren’t really looking to share your script with anyone other than Xonsh users or your own systems, you’d probably like to use .xsh scripts. But if you’re looking to share your script, use sh.py.