• hallettj@beehaw.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 months 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.