starman@programming.dev to Free and Open Source Software@beehaw.orgEnglish · 1 year agoNuShell: a very nice shell I found today. What do you think?www.nushell.shexternal-linkmessage-square30fedilinkarrow-up151arrow-down11file-textcross-posted to: linux@programming.dev
arrow-up150arrow-down1external-linkNuShell: a very nice shell I found today. What do you think?www.nushell.shstarman@programming.dev to Free and Open Source Software@beehaw.orgEnglish · 1 year agomessage-square30fedilinkfile-textcross-posted to: linux@programming.dev
minus-squaretad_lispylinkfedilinkarrow-up2·1 year 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
minus-squarehallettj@beehaw.orglinkfedilinkEnglisharrow-up1·1 year agoThanks 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.
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
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.