1
4
Fork
You've already forked cc
0
cc stands for clean config btw
  • Go 93.3%
  • Nix 6.7%
2026年03月12日 08:32:37 +01:00
.envrc chore: init 2026年03月12日 08:32:37 +01:00
.gitignore chore: init 2026年03月12日 08:32:37 +01:00
delete.go chore: init 2026年03月12日 08:32:37 +01:00
flake.lock chore: init 2026年03月12日 08:32:37 +01:00
flake.nix chore: init 2026年03月12日 08:32:37 +01:00
format.go chore: init 2026年03月12日 08:32:37 +01:00
go.mod chore: init 2026年03月12日 08:32:37 +01:00
go.sum chore: init 2026年03月12日 08:32:37 +01:00
LICENSE Initial commit 2026年03月12日 08:15:05 +01:00
main.go chore: init 2026年03月12日 08:32:37 +01:00
README.md chore: init 2026年03月12日 08:32:37 +01:00
scan.go chore: init 2026年03月12日 08:32:37 +01:00
ui.go chore: init 2026年03月12日 08:32:37 +01:00

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 --ignore for 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.