1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

Update filesize.nu

Simplified command, improved performance by using ls native directory size flag instead of running du in a loop
This commit is contained in:
Yethal 2021-08-12 06:01:59 +02:00 committed by GitHub
parent 43acc8416c
commit d46b1f713d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,2 +1,2 @@
## show directory sizes in current directory starting from the largest
ls|where type == Dir|each {du $it.name}|sort-by apparent|reverse|format filesize apparent GB
ls -d|where type == Dir|sort-by size|reverse|format filesize apparent GB