6 lines
244 B
Cheetah
6 lines
244 B
Cheetah
# no cache but more accurate than pj (https://github.com/josephschmitt/pj)
|
|
FD=$(command -v fdfind || command -v fd)
|
|
"$FD" -H -d 7 -t d -E .git -E .gitlab . "{{ .projectdir }}" \
|
|
| awk '{ print length, $0 }' \
|
|
| sort -n \
|
|
| cut -d' ' -f2-
|