2025-09-23 14:32:12 +08:00
|
|
|
|
<div align="center">
|
2025-09-28 17:01:25 +08:00
|
|
|
|
<img src="https://cdn.tw93.fun/pic/cole.png" alt="Mole Logo" width="120" height="120" style="border-radius:50%" />
|
2025-09-25 20:22:51 +08:00
|
|
|
|
<h1 style="margin: 12px 0 6px;">Mole</h1>
|
2025-09-28 17:01:25 +08:00
|
|
|
|
<p><em>🦡 Dig deep like a mole to clean your Mac.</em></p>
|
2025-09-23 14:32:12 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2025-09-28 17:01:25 +08:00
|
|
|
|
## Highlights
|
2025-09-23 14:32:12 +08:00
|
|
|
|
|
2025-09-28 17:01:25 +08:00
|
|
|
|
- 🦡 Deep-clean hidden caches, logs, and temp files in one sweep
|
|
|
|
|
|
- 🛡 Guardrails built in: skip vital macOS and input method data
|
|
|
|
|
|
- 📦 Smart uninstall removes apps together with every leftover directory
|
|
|
|
|
|
- ⚡️ Fast arrow-key TUI with pagination for big app lists
|
2025-09-23 14:32:12 +08:00
|
|
|
|
|
2025-09-28 20:26:27 +08:00
|
|
|
|
## Installation
|
2025-09-23 14:32:12 +08:00
|
|
|
|
|
|
|
|
|
|
```bash
|
2025-09-25 20:26:59 +08:00
|
|
|
|
curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash
|
2025-09-23 14:32:12 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
2025-09-28 20:26:27 +08:00
|
|
|
|
## Usage
|
2025-09-23 14:32:12 +08:00
|
|
|
|
|
|
|
|
|
|
```bash
|
2025-09-25 20:22:51 +08:00
|
|
|
|
mole # Interactive main menu
|
2025-09-25 22:10:30 +08:00
|
|
|
|
mole clean # Deeper system cleanup
|
2025-09-25 20:22:51 +08:00
|
|
|
|
mole uninstall # Interactive app uninstaller
|
|
|
|
|
|
mole --help # Show help
|
2025-09-23 14:32:12 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
2025-09-28 17:01:25 +08:00
|
|
|
|
### Quick Peek
|
2025-09-23 14:32:12 +08:00
|
|
|
|
|
|
|
|
|
|
```bash
|
2025-09-28 17:01:25 +08:00
|
|
|
|
$ mole clean
|
2025-09-28 22:36:37 +08:00
|
|
|
|
🕳️ Mole - Deeper system cleanup
|
|
|
|
|
|
==================================================
|
2025-09-23 14:32:12 +08:00
|
|
|
|
|
2025-09-28 22:36:37 +08:00
|
|
|
|
🍎 Detected: Apple Silicon M3 | 💾 Free space: 245GB
|
2025-09-23 14:32:12 +08:00
|
|
|
|
|
2025-09-28 22:36:37 +08:00
|
|
|
|
------------------------------ System essentials ------------------------------
|
2025-09-28 22:42:46 +08:00
|
|
|
|
✓ User app cache (20.8GB)
|
2025-09-28 22:36:37 +08:00
|
|
|
|
✓ User app logs (190MB)
|
2025-09-28 22:42:46 +08:00
|
|
|
|
✓ Trash (5.4GB)
|
2025-09-23 14:32:12 +08:00
|
|
|
|
|
2025-09-28 22:36:37 +08:00
|
|
|
|
------------------------------ Browser cleanup --------------------------------
|
|
|
|
|
|
✓ Safari cache (320MB)
|
|
|
|
|
|
✓ Chrome cache (1.2GB)
|
|
|
|
|
|
✓ Arc cache (460MB)
|
|
|
|
|
|
|
|
|
|
|
|
------------------------------ Developer tools --------------------------------
|
|
|
|
|
|
✓ npm cache cleaned
|
|
|
|
|
|
✓ Docker resources cleaned
|
|
|
|
|
|
✓ Homebrew cache (940MB)
|
|
|
|
|
|
|
|
|
|
|
|
------------------------------ Cleanup summary --------------------------------
|
2025-09-28 22:42:46 +08:00
|
|
|
|
🎉 Cleanup complete | 💾 Freed space: 38.6GB
|
2025-09-28 22:36:37 +08:00
|
|
|
|
📊 Items processed: 356 | 💾 Free space now: 253GB
|
|
|
|
|
|
===================================================================
|
2025-09-23 14:32:12 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
2025-09-28 17:01:25 +08:00
|
|
|
|
## What Mole Cleans
|
2025-09-23 14:32:12 +08:00
|
|
|
|
|
2025-09-25 20:22:51 +08:00
|
|
|
|
| Category | Items Cleaned | Safety |
|
|
|
|
|
|
|---|---|---|
|
|
|
|
|
|
| 🗂️ System | App caches, logs, trash, crash reports, QuickLook thumbnails | Safe |
|
|
|
|
|
|
| 🌐 Browsers | Safari, Chrome, Edge, Arc, Brave, Firefox, Opera, Vivaldi | Safe |
|
|
|
|
|
|
| 💻 Developer | Node.js/npm, Python/pip, Go, Rust/cargo, Docker, Homebrew, Git | Safe |
|
|
|
|
|
|
| 🛠️ IDEs | Xcode, VS Code, JetBrains, Android Studio, Unity, Figma | Safe |
|
|
|
|
|
|
| 📱 Apps | Common app caches (e.g., Slack, Discord, Teams, Notion, 1Password) | Safe |
|
|
|
|
|
|
| 🍎 Apple Silicon | Rosetta 2, media services, user activity caches | Safe |
|
|
|
|
|
|
|
2025-09-28 17:01:25 +08:00
|
|
|
|
## Smart Uninstall
|
2025-09-25 20:22:51 +08:00
|
|
|
|
|
|
|
|
|
|
- Fast scan of `/Applications` with system-app filtering (e.g., `com.apple.*`)
|
|
|
|
|
|
- Ranks apps by last used time and shows size hints
|
|
|
|
|
|
- Two modes: batch multi-select (checkbox) or quick single-select
|
|
|
|
|
|
- Detects running apps and force‑quits them before removal
|
|
|
|
|
|
- Single confirmation for the whole batch with estimated space to free
|
|
|
|
|
|
- Cleans thoroughly and safely:
|
|
|
|
|
|
- App bundle (`.app`)
|
|
|
|
|
|
- `~/Library/Application Support/<App|BundleID>`
|
|
|
|
|
|
- `~/Library/Caches/<BundleID>`
|
|
|
|
|
|
- `~/Library/Preferences/<BundleID>.plist`
|
|
|
|
|
|
- `~/Library/Logs/<App|BundleID>`
|
|
|
|
|
|
- `~/Library/Saved Application State/<BundleID>.savedState`
|
|
|
|
|
|
- `~/Library/Containers/<BundleID>` and related Group Containers
|
|
|
|
|
|
- Final summary: apps removed, files cleaned, total disk space reclaimed
|
2025-09-23 14:32:12 +08:00
|
|
|
|
|
|
|
|
|
|
## Support
|
|
|
|
|
|
|
2025-09-25 20:22:51 +08:00
|
|
|
|
If Mole has been helpful to you:
|
2025-09-23 14:32:12 +08:00
|
|
|
|
|
|
|
|
|
|
- **Star this repository** and share with fellow Mac users
|
|
|
|
|
|
- **Report issues** or suggest new cleanup targets
|
2025-09-25 20:26:59 +08:00
|
|
|
|
- I have two cats. If Mole helps you, you can <a href="https://miaoyan.app/cats.html?name=Mole" target="_blank">feed them canned food 🥩🍤</a>
|
2025-09-23 14:32:12 +08:00
|
|
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
2025-09-23 14:43:35 +08:00
|
|
|
|
MIT License © [tw93](https://github.com/tw93) - Feel free to enjoy and contribute to open source.
|