Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewn6/janitor
A script that cleans up my mac
https://github.com/andrewn6/janitor
homebrew
Last synced: 6 days ago
JSON representation
A script that cleans up my mac
- Host: GitHub
- URL: https://github.com/andrewn6/janitor
- Owner: andrewn6
- Created: 2022-10-12T19:38:20.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-26T01:42:27.000Z (almost 2 years ago)
- Last Synced: 2024-12-31T07:44:26.641Z (8 days ago)
- Topics: homebrew
- Language: Astro
- Homepage: https://janitor.nijmeh.cloud
- Size: 144 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Janitor
## What does this do?
This is a script that I run here and there which cleans up my macbook, updates packages and does other misc tasks.
## Overview
Here is the highlights of what the script does
- `brew update`
- update homebrew packages
- `brew upgrade`
- upgrade homebrew packages
- `rustup upgrade`
- updates rust to the latest versionand so on...
## Options
You can run the shell script with the following options:
- `--help (-h)`: shows this help page
- `--disable`: disable certain commands from running
- - `b`: disable brew update
- - `d`: disable DNS cache flush
- - `g`: disable gem cleanup
- - `n`: disable pnpm update
- - `p`: disable pip update
- - `r`: disable rust upgradeexample: `./janitor.sh --disable=dnrg`
## How to set up
- Clone the repo:
- `git clone https://github.com/anddddrew/janitor`
- Create an alias in your .zshrc or .bashrc:
- `alias='/pathofrepogoeshere/janitor.sh'`*Note: You may have to run `chmod +x janitor.sh` if you get `permission denied: ./janitor.sh`!*
## Thank you
Big thanks to @PineappleRind for improving the script and making great modifications!
Check out his work [here](https://pineapplerind.xyz)