| .envrc | chore: init | |
| .gitignore | chore: init | |
| delete.go | chore: init | |
| flake.lock | chore: init | |
| flake.nix | chore: init | |
| format.go | chore: init | |
| go.mod | chore: init | |
| go.sum | chore: init | |
| LICENSE | Initial commit | |
| main.go | chore: init | |
| README.md | chore: init | |
| scan.go | chore: init | |
| ui.go | chore: init | |
cc
cc stands for clean config btw.
flag reference
-n / --dry-run preview without deleting anything
--dir <path> scan a different directory
-y skip the tui, delete all orphans immediately
--ignore <a,b,c> skip specific names
--version print version
install
go install codeberg.org/elisiei/cc@latest
or build from source:
git clone https://codeberg.org/elisiei/cc
cd cc
go build .
why
i'm pretty tired of having a bloated ass ~/.config dir with dirs i don't even use anymore.
how it works
cc scans ~/.config and flags entries whose name doesn't match any installed binary.
on nixos it also checks /run/current-system/sw/bin and ~/.nix-profile/bin.
tip: launch with no flags for the interactive tui. navigate with arrows or j/k, toggle with space, confirm with enter.
config dir names don't always match binary names (e.g.
gtk-3.0,pulse). always review before confirming, or use--ignorefor known false positives.
note: this software mainly targets nixos machines, even though it should support other distros, i didn't test such behavior. if you encounter issues using other distros, please open an issue and i will help you asap. :D
license
cc0 1.0 (public domain). do whatever you want with it.