A efficient system cleaning utility for macOS that helps manage disk space by removing unnecessary files and providing detailed space usage analysis.
- Automated cleanup of common system junk files
- Detailed space usage analysis with visual reporting
- Human-readable size formatting
- Configurable cleaning rules and safety measures
- Simple logging system
- Easy installation process
- Clone the repository:
git clone https://github.com/saifeddineelhanoune/Cleaner.git
cd Cleaner- Run the installer:
./CleanerInstaller.sh- Source your updated configuration:
source ~/.zshrcThe installer will:
- Create necessary directories
- Set up the required PATH
- Add the
scleancommand alias - Configure permissions
Simply run the cleaner using the installed alias:
scleanThe script will:
- Display initial disk usage
- Show space analysis for your home directory
- Clean unnecessary files
- Display final disk usage and space saved
You can customize the cleaning behavior by modifying config.sh:
- Set minimum file age for cleanup
- Configure minimum free space requirements
- Adjust maximum cache size
- Enable/disable backup before cleaning
- Customize logging preferences
- Configure safety measures
- Define excluded directories
- Set file age thresholds for different directories
- Safe mode (optional) that asks for confirmation before deleting
- Maximum deletion size limit
- Excluded paths protection
- Logging of all operations
- macOS operating system
- Bash 3.2 or later
- ZSH shell (default on modern macOS)
Saif Eddine El Hanoune (@saifeddineelhanoune)