better ls?

This commit is contained in:
Tao Tien 2025-12-02 02:33:24 -08:00
parent b71ec5603c
commit c23669ebb8

View file

@ -56,8 +56,8 @@ def --env c [path: path = "~"] {
l l
} }
def l --wrapped [path: path = ".", ...rest] { def l --wrapped [...rest] {
ls ...$rest $path | sort-by type name -i -n ls -t ...$rest | insert ext {|row| $row.name | parse "{name}.{ext}" | get ext | get 0? } | sort-by type ext name | reject type ext
} }
alias list-automounts = systemctl list-units --type=automount alias list-automounts = systemctl list-units --type=automount