starman@programming.dev to Free and Open Source Software@beehaw.orgEnglish · 3 years agoNuShell: a very nice shell I found today. What do you think?www.nushell.shexternal-linkmessage-square13linkfedilinkarrow-up133arrow-down10file-text
arrow-up133arrow-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 · 3 years agomessage-square13linkfedilinkfile-text
minus-squaremarco@beehaw.orglinkfedilinkEnglisharrow-up3·edit-23 years agoIt’s cool, I just gave it a go, but I’m not sure it’s gonna happen that I’ll transition from ls -lrt (this does not work in NuShell) to ls | sort-by modified | reverse
minus-squarestarman@programming.devOPlinkfedilinkEnglisharrow-up4·3 years agoWell, it’s easier to remember second script
minus-squaremarco@beehaw.orglinkfedilinkEnglisharrow-up1·3 years agoTotally - for new users it’s great… similarly, I would have loved to start typing on Dvorak. My problem might be one of age, but there is no way I’m gonna retrain myself after 20+ years of typing that specific ls command… ;)
minus-squarehallettj@beehaw.orglinkfedilinkEnglisharrow-up2·3 years agoSo maybe this is too much of a kludge, but I happened to see that you can define custom sub-commands to extend existing commands. You can use that to reproduce your familiar command: def "ls -lrt" [] { ls | sort-by modified | reverse } Of course this does not capture the usual composability of those switches.
It’s cool, I just gave it a go, but I’m not sure it’s gonna happen that I’ll transition from
ls -lrt(this does not work in NuShell)to
ls | sort-by modified | reverseWell, it’s easier to remember second script
Totally - for new users it’s great… similarly, I would have loved to start typing on Dvorak.
My problem might be one of age, but there is no way I’m gonna retrain myself after 20+ years of typing that specific ls command… ;)
So maybe this is too much of a kludge, but I happened to see that you can define custom sub-commands to extend existing commands. You can use that to reproduce your familiar command:
def "ls -lrt" [] { ls | sort-by modified | reverse }Of course this does not capture the usual composability of those switches.