1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-29 02:17:12 -07:00
rc/sh/dbusiest
Connor Olding d35c492850 NixOS compatibility
* use /usr/bin/env for all hashbangs
* enable hashall for bash
* workaround syntax error in -shrc for bash
2020-12-29 18:04:04 +01:00

9 lines
175 B
Bash
Executable File

#!/usr/bin/env zsh
local c d
for d in *(FDN); do
print $(find $d 2>/dev/null | wc -l) $d
done | sort -nr | while read c d; do
echo -E $c $d
done
[ -z $d ] && return 1