This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cdf() { | |
local depth | |
local count | |
count=$(find . -mindepth 1 -maxdepth 10 | wc -l) | |
# Scale depth based on entry count | |
if [ "$count" -lt 20000 ]; then | |
depth=10 | |
mode="deep" |