Files
nixos/modules/terminal/fish-functions/files.fish
2026-09-30 16:51:03 +02:00

10 lines
212 B
Fish

if test -z "$argv[1]"
set dir '.'
else
set dir "$argv[1]"
end
for i in (find "$dir" -maxdepth 1 -type d )
set b (find "$i" -type f| wc -l)
printf "%d/%s\n" $b (basename "$i")
end | sort -nr | column -ts/