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
| // scan-home-dotfiles.cpp | |
| // Smart macOS dotfile auditor — no hardcoded tech list. | |
| // Infers ownership/category from filesystem state, Spotlight metadata, | |
| // extended attributes, package-manager presence, and content fingerprints. | |
| // | |
| // Build: | |
| // clang++ -std=c++17 -O2 -o scan-home-dotfiles /tmp/scan-home-dotfiles.sh | |
| // Run: | |
| // ./scan-home-dotfiles # default table | |
| // ./scan-home-dotfiles --stale-days 180 |
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # ---------- Defaults ---------- | |
| STALE_DAYS=90 | |
| SORT_BY="name" # name | size | age | |
| FORMAT="table" # table | json | csv | |
| FILTER="all" # all | apple | shell | xdg | known | unknown | stale | |
| COMPUTE_SIZE=1 |