50
submitted 1 year ago by starman@programming.dev to c/foss@beehaw.org
you are viewing a single comment's thread
view the rest of the comments
[-] hallettj@beehaw.org 2 points 1 year ago

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.

this post was submitted on 21 Sep 2023
50 points (100.0% liked)

Free and Open Source Software

17805 readers
96 users here now

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.

founded 2 years ago
MODERATORS