Is Nushell Worth The Hype?

Поделиться
HTML-код
  • Опубликовано: 4 фев 2025

Комментарии • 220

  • @devopstoolbox
    @devopstoolbox  3 месяца назад +10

    Important correction - Carapace doesn't only complete cobra apps, and AWS was definitely not written with Cobra (it's actually written in Python - github.com/aws/aws-cli).
    Leave a comment with your thoughts or ping me on x.com/devopstoolbox

    • @dawnrazor
      @dawnrazor 2 месяца назад

      Trying to figure out why carapace exists. I thought cobra had completions already built in, so what is the need for carapace? It looks like a significant project so I’m definitely missing something which isn’t really explained in any introduction, it just assumes you already know.

  • @UliTroyo
    @UliTroyo 3 месяца назад +79

    I've been using Nushell for about 2 years now. I use it for _everything_. I live in my shell now. It replaces my need for Python, Node, Bash, configuration files, and clicking around the UI of my OS.
    - Editor macros? I just pipe my selections to Nushell. (A must for Helix, its biggest missing feature)
    - Transpile or transform watched files? I write a Nushell script.
    - Interface with REST APIs? Nevermind Postman and `jq`, you just need Nushell.
    - Need JSON that gets its data from dynamic sources? Nevermind Dhall or Jsonett-treat Nu scripts as data.
    - Shell sessions and environment variables? Nu config hooks.
    - Always performing the same actions on a repo? Nevermind `package.json` scripts-Nushell module overlays.
    - Bored? Write a Nushell text adventure RPG.

    • @devopstoolbox
      @devopstoolbox  3 месяца назад +16

      Every line in this comment blew my mind in another direction.
      How did I miss piping stuff from vim to Nushell 🤦
      Sounds like another rabbit hole I'm diving head straight into...
      How do you feel about the scripting language? is it worth the hassle of learning?

    • @RenderingUser
      @RenderingUser 3 месяца назад +1

      @@UliTroyo I remember looking for a good 'watch' program. I installed one, didn't know what it was called. Then I typed 'watch - h'. And I got a nushell help page....
      Anyway. That was pretty useful.

    • @sugasheeze
      @sugasheeze 3 месяца назад +8

      I used nushell as my daily driver from mid-2021 to March of this year and it is endlessly frustrating. Every other time nushell releases a new version it brings with it *tons* of breaking changes. I got so sick of having to go through and update all my scripts and source files every single time I installed nushell on a new machine. Like, constant breaking changes. Breaking syntax changes to the scripting language *and* breaking changes to how that language is processed even if the syntax hasn't changed.
      I just went back and installed it on a fresh NixOS machine and immediately hit a ton of errors just trying to load my old configs that worked perfectly fine at the beginning of the year. One of these functions I actually fixed when I tried to give nushell another shake about 4 months ago and that fixed version no longer works now. 4 months ago! It appears that the way subshells inherit variables from the parent process namespace has changed and I just dgaf enough anymore to figure out why it's broken and how to fix it. The documentation is subpar and the shell introduces breaking changes enough that it's worthless trying to refer to old GitHub issues or SO posts.
      Even config lines that Nushell put in my config files when they were original generated are erroring out and preventing my config.nu from loading now (`use_grid_icons: true`). Like, they can just shoot a warning, they have to kill the entire config.nu load -- for a line of code that they put in the config.nu file and I haven't touched since. Similarly, the way I used to install my plugins just a few months ago are also now deprecated and giving me errors.
      Nushell itself is hella cool -- when it works, but the project itself is horribly mismanaged by the maintainers. I've never used another tool that's been around for *years* and introduces a plethora of breaking changes every update. It is almost laughable how unstable it is. At this point, I'd prefer Powershell.

    • @sugasheeze
      @sugasheeze 3 месяца назад

      This isn't even getting into how wildly unnecessarily convoluted the scripting language itself is becoming. Pipes on the command line in nushell are beautiful, but the full scripting language is a nightmare. The inability to source dynamic files is a huge headache that I've had to go to great lengths to get around. They keep breaking the plugin system every few months.
      It's just not worth it to use as an interactive shell.

    • @RenderingUser
      @RenderingUser 3 месяца назад +7

      @@sugasheeze to be fair, it's not released a stable release yet. Breaking changes are expected.
      And the docs cover all the changes so I've been fine

  • @redcollard3586
    @redcollard3586 3 месяца назад +62

    nushell is dope is hell, I have been daily driving it for a few months now, but DO NOT CHANGE IT TO YOUR DEFAULT SHELL!!! YOUR DEFAULT/LOGIN SHELL MUST BE POSIX COMPLIANT! Instead, set it is the default program for your terminal emulator to launch. This way it's always the interactive shell without interfering with your system.

    • @devopstoolbox
      @devopstoolbox  3 месяца назад +4

      Interesting... few qustions
      1. Why? What's the big deal about a non-posix compliant default shell? I had issues when trying to run copy-pasted commands but they were rather easily fixed. Is there something else major I'm missing?
      2. What's the different in having it as a default program vs a default shell ?

    • @ollyjxrvis9501
      @ollyjxrvis9501 3 месяца назад +11

      ⁠@@devopstoolboxdefault shell means many tiling wm will need reconfiguring as they use bash commands to function for example so posix compliance is p important for that unless you want to rewrite all the configs to be nushell

    • @redcollard3586
      @redcollard3586 3 месяца назад +21

      @@devopstoolbox The default shell is what is used anytime a piece of software asks for a shell to do something with the system: if it's not posix compliant, the scripts may fail to execute. It's not for commands a user runs directly, it's for system processes. Your terminal emulator doesn't have to launch your default shell: you can tell it to launch any other program instead, for instance tmux.

  • @weiSane
    @weiSane 3 месяца назад +16

    Damn , first video I ever appeared in. (My name at least ) 😂. Great to have played a part in bringing nushell to your attention 😊

  • @CNich90
    @CNich90 3 месяца назад +29

    Let’s go!!! Nushell for the win. As a data engineer it’s a dream shell for me.

    • @devopstoolbox
      @devopstoolbox  3 месяца назад +5

      Oh yeah... people who work with data don't have to think twice!

    • @CNich90
      @CNich90 3 месяца назад +1

      💯

  • @arkeynserhayn8370
    @arkeynserhayn8370 3 месяца назад +6

    This reminds me of Brian Will's video about Unix, in which he brings this idea of "data-table based OS" vs the current "tree-shaped files hierarchy".
    This feels like a experimental try at what Brian explained in his video, regardless whether nushell creators directly take inspirations from that video or not.

  • @Spl4tt
    @Spl4tt 3 месяца назад +6

    Oh wow, finally a video that shows me something i didn't knew about. I'm actually gonna try this. I love the vi mode, I wanted this for so long

    • @devopstoolbox
      @devopstoolbox  3 месяца назад +1

      My only issue with it is that they don't support a different mode key other than "esc". i'm used to "jj" and it's been quite annoying not being able to use it...

    • @NotTheDr01ds
      @NotTheDr01ds 3 месяца назад

      @@devopstoolbox That's a good point - Personally I got hooked on Ctrl+C years ago as an Esc replacement, but ... that won't work in a shell :P. Probably why I've never switched to vi mode in any shell. OTOH, Ctrl+O is always there to open the commandline in the editor itself.
      Leader keys with a timeout (I assume that's how jj is typically implemented?) would be nice - I've toyed with some ideas here in Nushell (very briefly), but I don't think we can do it with Nushell/Reedline keybindings just yet.

    • @freeo6242
      @freeo6242 3 месяца назад

      @@devopstoolbox No smash escape ('jk'), not with me. But you should try jk instead of jj, especially in vim. It's literally the first thing I enter when I use vim on a remote/unconfigured machine: ":imap jk " THAT's how important it is to me. But with your moonlander keyboard this isn't a big issue actually.

  • @niksingh710
    @niksingh710 3 месяца назад +11

    It's lovely to learn this and it is very much handy, but I will stick to posix compatible zsh for now but it's definitely for future me to explore

  • @tomii2112
    @tomii2112 3 месяца назад +1

    thanks, i never heard about nushell before. sounds like it will be right up my alley, going to install it tonight and see how i like it

  • @handcoding
    @handcoding 3 месяца назад +26

    0:01 - NGL, those “can your shell do this?” bits were on screen for, like, 20 frames apiece? Dude, I couldn’t even perceive what I was being shown in that timeframe, let alone gauge whether my shell could do those things.

  • @MrVampify
    @MrVampify 2 месяца назад +18

    This reminds me of powershell.
    Powershell was built with the same idea in mind that your output should be treated like data objects.

    • @captive8670
      @captive8670 28 дней назад +1

      Yeah but sometime PowerShell can be a little more tricky, for exemple sorting like he did at 3:58 can be less obvious in pwsh (Sort-Object)
      Aside from that yeah they are quite alike

    • @Chalisque
      @Chalisque 22 дня назад +1

      I think the object pipe idea is inspired from there. Powershell can, however, do things like loading .dlls with C or C# stuff; can compile C# and such: Powershell runs within the .Net universe.

  • @LeFlamel
    @LeFlamel 3 месяца назад +2

    OMG I didn't know about Carapace! Thanks for that. Was gonna roll my own completions script but that's way better.

    • @TheOneAnOnlyGuy
      @TheOneAnOnlyGuy 3 месяца назад +1

      I don't get why it provided git completions, though. The docs don't say that git.exe was written using Cobra - but it's the only completion I really care about :)

    • @LeFlamel
      @LeFlamel 3 месяца назад

      @@TheOneAnOnlyGuy imo git is the only thing i don't need completions for, but that's fair

  • @vitluk
    @vitluk 3 месяца назад +1

    One of us, one of us! (I've bean using nutshell for like 3-4 years now, love it)

    • @Patterner
      @Patterner 3 месяца назад

      Not like us, not like us! (hardcore ksh users)

  • @lpanebr
    @lpanebr 3 месяца назад +2

    Good to know about the sxhkd tweaking needed. Thanks!

  • @snatchcake
    @snatchcake 3 месяца назад +1

    Oh nice! Looks like kusto or kql in shell. Love it!

  • @freeo6242
    @freeo6242 3 месяца назад +4

    Carapace and the advanced problems you solve makes this a AAA-tier video! Thank you Omer for many hours saved and really delving into this! And for listening to us to check this out ;-)
    In your opinion: can nu-shell become the new sensible default for (devops) scripting? Or will you continue to write #!/bin/bash scripts?

    • @devopstoolbox
      @devopstoolbox  3 месяца назад

      Thanks!! A great question I don't have a good answer to (yet) simply because I haven't experienced enough with the scripting language (I'm on it though ;) )
      With the tricks I used in the video it's very much worth the switch already for me personally!

  • @arunoruto
    @arunoruto 3 месяца назад +13

    I had nushell configured for some time, but the PSOIX compliance always held me back
    Maybe I should give it a shot again! Especially since I am on NixOS most of the time and putting some random bash oneliners isn't much of a thing anymore

    • @devopstoolbox
      @devopstoolbox  3 месяца назад +4

      I totally get it. But, scripts can just be sent to their executor with a proper shabang, while other inline operations require some learning on your behalf. If you work with data from time to time, feels like its well worth the effort (I'm at the same point right now, and feeling the same annoyance)

    • @vikingthedude
      @vikingthedude 3 месяца назад

      In what way did this being non posix compliance hold you back? What kind of use cases require posix compliance, and how often do we need such use cases? Genuinely curious as i don’t use the shell for more than the trivial stuff

    • @arunoruto
      @arunoruto 3 месяца назад

      @@vikingthedude
      Well, as soon as I wrote the post, I hit me kinda hard 😂
      I was trying out clevis (something for encryption which also uses the TPM) and there you need to read into stdin and write to stdout. You usually do it with < (reading) and > (writing). For example "echo 'hi' > test.txt" would create a file test.txt with the content "hi". Somehow nutshell doesn't follow this and when I tried the example "$ clevis encrypt PIN CONFIG < PLAINTEXT > CIPHERTEXT.jwe" I was getting some weird errors from clevis, but nutshell was the culprit since the operators were doing something different.
      It's just those small things, which in the end make your life a bit harder 🥲

  • @GOTHICforLIFE1
    @GOTHICforLIFE1 3 месяца назад +3

    Ok this is actually big! Very cool

  • @dawnrazor
    @dawnrazor 2 месяца назад

    Watching this has totally dropped a bombshell on my own cli world making me feel like I’m still in the stone age using zsh. Nushell is doing what powershell tries to do but so much better. I’ve also fairly recently discovered the awesomeness of nix and combined with nushell will mark the dawn of a new era of my cli world, but the shift is daunting and I just see a huge learning curve towering over me

    • @devopstoolbox
      @devopstoolbox  2 месяца назад +1

      Im right there with you. working on another video going into more depth of what nushell has to offer!

  • @-suncheez-
    @-suncheez- 3 месяца назад

    Many thanks, Omer, for this review!

  • @samanthbapu6207
    @samanthbapu6207 3 месяца назад +1

    This is a great video.I just started with Nu yesterday and your video is here! Wow.
    How about a tutorial series on this?

    • @devopstoolbox
      @devopstoolbox  3 месяца назад +1

      I'm thinking about it. But I need some milage with it :)

    • @CychCB
      @CychCB 3 месяца назад

      @@devopstoolbox Don’t just do it! Wait until 1.0.0. Nu is the future imo. Bash isn’t going anywhere and I’d encourage every engineer to learn it, but slowly migrating stuff to Nu after it’s stable is going to be incredible.

  • @RenderingUser
    @RenderingUser 3 месяца назад +9

    5:40 honestly, its my only complaint.
    '>' is such a quick and reliable operator. save takes too long to type

    • @magmarneal
      @magmarneal 3 месяца назад +1

      Where nushell costs you time there, it will save you a lot of time in other areas.

    • @devopstoolbox
      @devopstoolbox  3 месяца назад +5

      there's a quick operator you're used to, and there's sensible language and readability of scripts! the two aren't mutually exclusive. You could just map the operator in nushell if you wanted, but IIUC it wants to be better than posix not just different

    • @RenderingUser
      @RenderingUser 3 месяца назад +8

      @@devopstoolbox I don't think "save" is sensible wording. > is a redirect to file operator. It has different implications. It means it can pipe any incoming data continuously into a file. "save" just doesn't make sense for that. Atleast, not any more than redirect.

    • @anonymouscommentator
      @anonymouscommentator 3 месяца назад

      just alias it then

    • @ivlis.w
      @ivlis.w 3 месяца назад

      I think you can use "out>" or "o>" in nushell for that
      There's also "err>" or "e>, and "out+err>" or "o+e>"

  • @Kalasklister1337
    @Kalasklister1337 3 месяца назад +2

    It's true that it takes some getting used to and that they break things very often at the moment, but i think it is better that way than having a bad 1.0 release that we as users have to live with for possibly decades later. Devs should take their time and experiment to find the best workflows before releasing 1.0. If you don't like to tweak your scripts and configs a bit every quarter or so this is not for you yet (just like any fresh programming language also is for more hardcore users willing to invest more time)

  • @taquanminhlong
    @taquanminhlong 3 месяца назад +1

    I actually use nushell with everything with CI for now. nu-lang has syntax pretty similar to rust, but so much easier and much more beautiful than bash 😂😂

  • @AM-yk5yd
    @AM-yk5yd 24 дня назад +1

    OK, this look dope. Worth checking out. I wanted to use xonsh as it is pure python, so it has scripting and batteries. But no (out of box) support for parsing usual commands as tables

  • @mohammedhasan4543
    @mohammedhasan4543 Месяц назад

    Man you are doing awesome content. But please give a beginner's tutorial on how to do that initial setup as you have done... Please..

  • @Flackon
    @Flackon 13 дней назад +1

    Great vid. I'll check out nu. But, how did you fuzzy search completions with carapace?

    • @devopstoolbox
      @devopstoolbox  12 дней назад

      What you see in the video is out of the box behaviour!

  • @fabricehategekimana5350
    @fabricehategekimana5350 3 месяца назад

    I am glad you like nushell, I was sure a tech champions like you would like it. The default features of nushell make it easy to create performant script to build commands and you can even DOCUMENT them O_o

  • @robpearce
    @robpearce 26 дней назад +1

    minor request. Can you move the terminal windows up a little bit - closed captions on your videos often hides the cursor prompt.

  • @alexstone691
    @alexstone691 3 месяца назад +1

    I love it for small scripts more than python, although i havent used it much i believe it is what powershell was supposed to be.. Im waiting for v1.0 stability before jumping into it

    • @adriansrfr
      @adriansrfr 3 месяца назад

      How is it what powershell was supposed to be?

    • @alexstone691
      @alexstone691 3 месяца назад

      @adriansrfr powershell has started it with the structured data thing but i feel like it was made to be too verbose and feels like writing cobol

    • @adriansrfr
      @adriansrfr 3 месяца назад

      @alexstone691 try writing Java, c, or#. I don't find it verbose, but it can be if you want that much control and to make whatever your are writing featurefull.

  • @Hellbending
    @Hellbending 2 месяца назад +1

    Not looking at the code for Nu- I hazard the error outputs are from miette, great little library for user output & feedback

  • @linkarzu
    @linkarzu 3 месяца назад +3

    As always, interesting, really appreciate you're sharing a lot of tricks. I rely a lot on my zshrc file to create symlinks and initialize some things, does this mean I have to move to a nu shell equivalent file with its own syntax?

    • @devopstoolbox
      @devopstoolbox  3 месяца назад

      Thanks! And unfortunately yes... definitely something to consider

    • @linkarzu
      @linkarzu 3 месяца назад

      @@devopstoolbox The demo you shared covers a lot of stuff that takes hours or even days to figure out on your own, so it's a wonderful starting point, again, thanks and will keep this shell in mind. New rabbit hole added to my procrastination list.

  • @DmitriNesterov
    @DmitriNesterov 27 дней назад

    Good license, worth trying 😊

  • @dwskme
    @dwskme 3 месяца назад

    Hey, I love your videos. Can you make a video for how you setup your macbook into your dev environment from scratch. I would love to see your settings that you change. Anyways Great Video.

  • @ivlis.w
    @ivlis.w 3 месяца назад

    Love that shell

  • @traderminion
    @traderminion 10 дней назад +1

    What terminal is this? Its so cool

    • @devopstoolbox
      @devopstoolbox  10 дней назад

      Ghostty / Wezterm. I use both (no real difference) - but you may be interested in Tmux - I have a video covering the setup from scratch (serach tmux from scratch to beast mode)

  • @eliankreidler
    @eliankreidler 3 месяца назад +2

    Is there any chance that you tell us something about the aluminum base your moonlander is mounted on? I would really appreciate having something like this, but did not found anything about on your „tech I use“ webpage. I got my moonlander a week ago and wanted to also use such a mount if it is not complete custom made which I think it might be?

    • @devopstoolbox
      @devopstoolbox  3 месяца назад +2

      of course! that's the ZSA platform. BUT - not a cheap product, and they have plenty of open source free models you can 3d print and enjoy. if you're unsure about tenting I'd start from there (you can find cheap services online that will print and ship it for you if you don't have a printer)

  • @Tigregalis
    @Tigregalis 3 месяца назад +3

    I fucking love nushell

  • @dimi244
    @dimi244 3 месяца назад +1

    very interesting, although I just switched from bash to zsh, I will try to see nushell BUT I would also like to ask you where you found the keyboard tilt, unfortunately it is not shown on your KIT page

    • @devopstoolbox
      @devopstoolbox  3 месяца назад

      Yes, this is the ZSA platform, I love it but it's not cheap. they have plenty of free 3d printable models too!

  • @FuzailShaikh
    @FuzailShaikh 3 месяца назад +1

    Pretty cool!

  • @SaHaRaSquad
    @SaHaRaSquad 3 месяца назад +1

    Can nushell talk to other custom cli tools? For example can a program output JSON and nushell would just display that as a table?

    • @devopstoolbox
      @devopstoolbox  3 месяца назад +1

      Of course, pipes are first class citizen in nu, pipe your json / yaml the way you like it

  • @ZiggleFingers
    @ZiggleFingers 3 месяца назад +13

    i like the idea of nushell but it is not a shell replacer for me. I gave an honest effort to rewrite a script I have I have in python and JavaScript to nushell but it doesn't have enough library yet

    • @luccahuguet
      @luccahuguet 3 месяца назад +8

      The point is rewriting bash

    • @007arek
      @007arek 3 месяца назад +3

      Why do you want to rewrite your python scripts?

    • @devopstoolbox
      @devopstoolbox  3 месяца назад +7

      not sure it compares (or want to be compared) to languages like python or js.
      the 'idea' is being able to do most data-oriented tasks right from your shell with native tooling. scripting is another layer on top and i'd compare it to bash

    • @ZiggleFingers
      @ZiggleFingers 3 месяца назад +2

      @@luccahuguet the script is too complicated for plain POSIX shell. it needs to run tasks asynchronously which I was hoping to use par-each (nu-shell's async runner) but yet it doesn't need a general purpose language either.

    • @luccahuguet
      @luccahuguet 3 месяца назад +2

      @@ZiggleFingers nice. At least you tried
      But what I meant is that this comparison is unfair, since it's a python/js script and not the niche nushell is aiming for...
      If it was a bash script and you could not rewrite it in nushell that would be another story...
      What @devopstoolbox said is quite on point imo

  • @c_kemper
    @c_kemper 2 месяца назад

    That double shell prompt character for starship and nushell are bugging me... been trying to solve that for a few hours now... would be great if the interop was a little better between nushell and starship for managing the prompt char and also handling custom escape keys for vi mode...

  • @jorgeharrisonn8325
    @jorgeharrisonn8325 3 месяца назад +2

    OMG i'm in the video hi
    I created the bat completions

  • @nlahmi
    @nlahmi 3 месяца назад

    Reminds me of what powershell was trying to be

    • @adriansrfr
      @adriansrfr 3 месяца назад

      What's powershell trying to be.

  • @erikw2460
    @erikw2460 2 месяца назад

    Can someone tell me the difference between this and pwsh? More concise? Serious question ty ya'll.

  • @adriansrfr
    @adriansrfr 3 месяца назад +2

    Id like to see a comparison between nushell and powershell

    • @devopstoolbox
      @devopstoolbox  3 месяца назад

      Not going to take powershell on anytime soon 😅

  • @moneyfr
    @moneyfr 3 месяца назад

    Where is your dot file I would like to see how get syntax highlighted

  • @dyrion
    @dyrion 3 месяца назад

    What keyboard layout are you using? For me, it seems that it's not qwerty so I wanted to ask if you're using an alternative one

  • @sh_zik
    @sh_zik 3 месяца назад +1

    Awesome content as always!
    Can you share apple script for closing all notifications, please ?

    • @devopstoolbox
      @devopstoolbox  3 месяца назад

      I had one hooked into skhd but apple changed something in one of the recent OS releases and it stopped working properly. I'd ask chat gpt... (let me know if you make it work)

  • @RamonSmits
    @RamonSmits 2 месяца назад

    so its more similar to Windows Powershell but not object but structure(serialized object) based?

  • @yoelross6146
    @yoelross6146 2 месяца назад +1

    Very cool! Been trying nushell out for a bit. I like it, but im still hung up on the lack of a good support for neovim (highlighting, linting, formatting etc) and the fact that i can't export an env var from a function. Thanks for the video!

    • @devopstoolbox
      @devopstoolbox  2 месяца назад

      You mean for nu scripts? I'm still not sold on these... BTW watch our for tomorrow's video 👀

  • @Tony_Sol
    @Tony_Sol 3 месяца назад +2

    imho, nushell relates to powershell same as fish to zsh
    i still prefer zsh and pwsh in daily usage, but after the video probably want to check nushell

  • @JonCanning
    @JonCanning 3 месяца назад +1

    What is this keyboard!?

    • @devopstoolbox
      @devopstoolbox  3 месяца назад +1

      The Moonlander :)
      I've got a video covering it in full, coming out in a week or two!

  • @Quephara
    @Quephara 3 месяца назад +2

    What is that browser?

    • @devopstoolbox
      @devopstoolbox  3 месяца назад

      It's arc, but it only looks this way because of editing tricks

    • @Quephara
      @Quephara 3 месяца назад

      @@devopstoolbox oh, I'd have sold a kidney.
      Switch to zen, it's going to stay a browser, not switching focus to some AI train

  • @trashhater9304
    @trashhater9304 3 месяца назад +1

    LOL, crabs reinvented awk

    • @devopstoolbox
      @devopstoolbox  3 месяца назад

      They reinvent everything these days 😅

  • @JordanShurmer
    @JordanShurmer 3 месяца назад +6

    So it's powershell?

    • @germandavid2520
      @germandavid2520 2 месяца назад

      easier syntax and way faster

    • @dawnrazor
      @dawnrazor 2 месяца назад

      And way better. I used to be a powershell enthusiast in the days when I was happy to use windows. But over recent times my patience with evil corp has expired. Powershell has good intentions but in my opinion poorly executed. My biggest problem with it is its woeful approach to flag definitions its concept of parameter sets which ultimately makes building larger CLIs much more difficult. Nushell is going to be my shining knight to the rescue

  • @Arnoldze
    @Arnoldze 3 месяца назад +2

    lol so it's basically MS powershell for linux

  • @sub-harmonik
    @sub-harmonik 3 месяца назад +2

    powershell was the 1st to use structured data. Maybe nushell makes it more ergonomic

    • @CychCB
      @CychCB 3 месяца назад +1

      I hate the fact that I love PowerShell lol. I’m so ready for Nu to hit 1.0.0

    • @ArturdeSousaRocha
      @ArturdeSousaRocha 3 месяца назад +1

      It's not a "maybe", it's a "definitely". PowerShell is an exercise in inconvenience. I'm not going to use nu anytime soon but it looks appealing.

  • @joe-skeen
    @joe-skeen 3 месяца назад +1

    So... Basically like Powershell?

    • @adriansrfr
      @adriansrfr 3 месяца назад +1

      Powershell uses objects, nushell uses tables.

  • @koteelok2014
    @koteelok2014 3 месяца назад

    Powershell in Rust?

  • @vwwvw
    @vwwvw 3 месяца назад +3

    I wonder if a lot of the functionality here really requires a new shell. A custom CLI could replicate the querying and sorting of data using pipes.

    • @RenderingUser
      @RenderingUser 3 месяца назад +6

      but it will still stream data as strings instead of types
      nushell recognizes even types like duration
      also id argue that avoiding so many different dependencies and scripts and centralizing all functionality is a positive by itself

    • @Clebatwork
      @Clebatwork 3 месяца назад +1

      there's literally a github repo with countless CLI utils that deal with sorting and querying data but nushell persists and is only growing in popularity. Probably a good reason for it

    • @devopstoolbox
      @devopstoolbox  3 месяца назад +1

      I mean, almost everything is solvable with more tooling. IIUC nushell is trying to eliminate the need for tooling by implementing most functionality and doing it opinionated enough to save you from the choice paradox. additionally it comes with LOTS of stuff - hooks overlays, scripting, things I didn't touch or used really... this thing packs POWER.

    • @thousander
      @thousander 3 месяца назад

      You can use nu as a cli tool from another shell

  • @Patterner
    @Patterner 3 месяца назад

    what is worse: "skill issue" or "get good"?

  • @liquidpebbles
    @liquidpebbles 6 дней назад

    I read it as nutshell and thought it was a great name

  • @SharunKumar
    @SharunKumar 3 месяца назад +1

    Isn't this what PowerShell tries to do? I guess nu would be much faster though.

    • @freeo6242
      @freeo6242 3 месяца назад +1

      Yes, they are often compared these days. My favorite comment is "nu-shell is powershell done right". I support that, because I just hate the verbosity and overall command design of pwsh. It's so microsofty... Like their other 90's garbage.

    • @ivlis.w
      @ivlis.w 3 месяца назад +1

      Pretty much, Nushell is like powershell for unix

    • @SharunKumar
      @SharunKumar 3 месяца назад +1

      @@freeo6242 i don't mind the verbosity because it has great auto complete that gets you like 90% of what you want to type

    • @adriansrfr
      @adriansrfr 3 месяца назад +1

      Aren't they both cross-platform?

    • @SharunKumar
      @SharunKumar 3 месяца назад +1

      @@adriansrfr exactly, you can use powershell on both Linux and Mac

  • @pdougall1
    @pdougall1 3 месяца назад +1

    nu is real 👏

  • @biernico
    @biernico 3 месяца назад +3

    I changed to nushell 6 months ago just to try it. And has been my default ever since. Only thing that is annoying is that they deprecate stuff a lot and I keep have to fix scripts all the time

    • @devopstoolbox
      @devopstoolbox  3 месяца назад +1

      I hope I'll get to your place. Right now it's mainly fighting the bash muscle memory (exports, open commands, etc)

  • @olu9828
    @olu9828 2 месяца назад

    3:39?

  • @romaric6022
    @romaric6022 Месяц назад

    thats sad because most of programs dont support nushell ..
    for example git, docker ps etc ..
    bash is default for a reason

    • @devopstoolbox
      @devopstoolbox  Месяц назад +1

      Hmmmm wdym "don't support"? I run nushell and happily using git docker and everything else. I won't stop you from running other tools, and scripts can have an interpreter set anyway

  • @RenderingUser
    @RenderingUser 3 месяца назад

    Lets gooooo

  • @Buri8128
    @Buri8128 3 месяца назад +2

    It is like powershell but faster

  • @Quephara
    @Quephara 3 месяца назад

    Sad my comment was not in the screenshot reel

    • @devopstoolbox
      @devopstoolbox  3 месяца назад

      If I'd let the editor stack all of them it'd be a 15 minute videos piling comments on the screen :)
      on a different optic - fancy a new screen saver...?

    • @Quephara
      @Quephara 3 месяца назад

      @@devopstoolbox who doesn't

  • @balazser
    @balazser 3 месяца назад +4

    You should make a video about the `xonsh` shell. That’s the real power 💪, especially if you’re a Python guy. 🐍

  • @Madferit71
    @Madferit71 3 месяца назад

    Elvish next?

  • @rabidboards
    @rabidboards 3 месяца назад

    Ctrl+O

  • @StinkyCatFarts
    @StinkyCatFarts 3 месяца назад

    Configuring this on MacOS was a pain in the ass. I use a lot of *nix tools and this was by far the worst experience I’ve had.

    • @devopstoolbox
      @devopstoolbox  3 месяца назад

      How come? I'm using home manager for my mac and had 0 issues...

    • @MyBlancpain
      @MyBlancpain 2 месяца назад

      I am going through this ATM - did you manage to set nushell as a default/login shell? I am getting permission denied errors when I change the shell to nushell with chsh... Tried installing w/ just homebrew or with nix-darwin - no difference

  • @SirSomnolent
    @SirSomnolent 3 месяца назад

    Ok now do a comparison to elvish ;)

  • @macerdough
    @macerdough 3 месяца назад +2

    These are the things i dont like about it.
    > It feels like a programming language for some reason.
    > It errrors when i try to reference a value that hasn't been declared. Just set it to nul.
    > For some reason i have to turn a value into a boolean before i use it in an if statement. Just check for truthy or something

  • @anonymouscommentator
    @anonymouscommentator 3 месяца назад +1

    nushell just looks like powershell for people living in denial

    • @adriansrfr
      @adriansrfr 3 месяца назад

      Looks more like powershell for beginners.

  • @sideone3581
    @sideone3581 3 месяца назад +1

    At this point of time, If only there exist A "First Principle" tool that make me rethink the way I do my things will change something
    Unless that everything is perfect nothing will change and I believe things that are already good need not be written rather why not just improve it?
    Linux community recreating tools so badly nowadays that only thing left is Linux kernel itself.
    like If I have already a good env with
    Kitty + tmux + bash/zsh + Neovim
    I don't need
    Ghostty + zellij + nushell + ...

    • @devopstoolbox
      @devopstoolbox  3 месяца назад +1

      I guess it's a combination of approach and affinity to adopting new tech and improving the workflow, not always for the best reasons 😅

    • @LeFlamel
      @LeFlamel 3 месяца назад +1

      Me with alacritty + zellij + nushell + helix: :')
      I'm glad someone created these newb friendly tools for me I guess.
      But yeah once you build a good env not much need to change. Don't think Ghostty adds anything for me.

  • @HobbitJack1
    @HobbitJack1 11 дней назад

    Maybe I'm a young-oldhead but going from raw textstreams to structured data feels like we're going backwards. The beauty of a textstream is that it's eminently parsable and infinitely storable.
    Also, the use of a billion shell built-ins is kinda gross, when the Unix toolset is already beloved precisely for its wide usability. This just kinda feels like a regression wrapped in admittedly attractive wrapping paper.

    • @devopstoolbox
      @devopstoolbox  11 дней назад +1

      I can relate to your perspective, but with all honesty, philosophy aside - the friction removal and ease of data digestion + the query features are something I don't want to remove from my workflow. They make working with the CLI fun, quick, and satisfying

  • @yurismirnov774
    @yurismirnov774 3 месяца назад

    Vim mode this vim mode that...
    hx mode when?

  • @Danielo515
    @Danielo515 3 месяца назад +1

    Do you use plain nix for your config or you use home.nix ?

  • @SniperMayer
    @SniperMayer 3 месяца назад +2

    I'd never use a shell that's not posix compliant

    • @devopstoolbox
      @devopstoolbox  3 месяца назад

      I thought so too, but what if...

  • @homeape.
    @homeape. 3 месяца назад +2

    not a big fan of using this ugly ai art in the video

    • @devopstoolbox
      @devopstoolbox  3 месяца назад +1

      uhmm what AI art...?

    • @homeape.
      @homeape. 3 месяца назад +2

      @devopstoolbox the two pictures on the left in the beginning?

  • @tubeincompetence
    @tubeincompetence 3 месяца назад +2

    "Is Nushell Worth The Hype?"
    Well.. no, not for me - Thanks for asking :)

  • @saiba-b7l
    @saiba-b7l 3 месяца назад

    another overhype shell

    • @devopstoolbox
      @devopstoolbox  3 месяца назад +2

      What else is overhyped? I'd love to test it!

  • @LeonZhangxiaolin
    @LeonZhangxiaolin 3 месяца назад

    How can I show collapsed table when you type "open some.json" ? I can get this with "open some.json | table". Thanks.