Dendarii
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
starman@programming.dev to Free and Open Source Software@beehaw.orgEnglish · 2 years ago

NuShell: a very nice shell I found today. What do you think?

www.nushell.sh

external-link
message-square
35
fedilink
51
external-link

NuShell: a very nice shell I found today. What do you think?

www.nushell.sh

starman@programming.dev to Free and Open Source Software@beehaw.orgEnglish · 2 years ago
message-square
35
fedilink
Nushell
www.nushell.sh
external-link
A new type of shell.

cross-posted from: https://programming.dev/post/3303176

  • Tad Lispy@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    One feature that is missing that I like to use is curly brace expansion to produce multiple arguments. For example,

    $ mv *.{jpg,jpeg}

    Maybe this will work for expansion: https://github.com/nushell/nu_scripts/blob/main/modules/filesystem/expand.nu

    It’s in the “filesystem” section, but I think it works on any string, not only paths. See the ugly duck example. I didn’t try it myself yet.

    BTW the nu_scripts goodies are available in Nixpkgs, so since you are using Home Manager, it’s easy to integrate. Take a look at my config for starters: https://gitlab.com/tad-lispy/nixos-configuration/-/blob/bb614ae3639a504912db167f5bd7e6651d28f604/tad.nix#L39-47

    • hallettj@beehaw.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      Thanks for the tip about nu_scripts, those look handy!

      The expand command is nice. I don’t see how to use it to my mv command work. But that’s not a huge deal.

Free and Open Source Software@beehaw.org

foss@beehaw.org

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

If it’s free and open source and it’s also software, it can be discussed here. Subcommunity of Technology.


This community’s icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 119 users / day
  • 524 users / week
  • 802 users / month
  • 2.82K users / 6 months
  • 1 local subscriber
  • 18.7K subscribers
  • 1.01K Posts
  • 13.3K Comments
  • Modlog
  • mods:
  • Gaywallet (they/it)@beehaw.org
  • alyaza [they/she]@beehaw.org
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org