TL;DR — Quick Summary
erdtree (erd) combines tree, du, and git status in one command. See your file hierarchy with disk usage, .gitignore awareness, file icons, and regex filtering.
erdtree is tree + du + git status in one. File hierarchy, sizes, icons — all at once.
Installation
# macOS
brew install erdtree
# Cargo
cargo install erdtree
Usage
# Show tree with disk usage
erd
# Limit depth
erd -L 3
# Show only specific patterns
erd -p "*.rs"
# Sort by size
erd --sort size
# Ignore .gitignore
erd --no-git
Summary
- erdtree combines tree, du, and git status
- Disk usage per directory by default
- Respects .gitignore — clean output
- File icons, regex filtering, sorting
- Written in Rust — fast on large trees