mac cleanup sh
v1.1.9: Merge pull request #89 from jrodan
brew tap fwartner/tap
brew install fwartner/tap/mac-cleanup如果您會看到
Error: SHA256 mismatch嘗試以下操作:
- 從錯誤中復制“實際”哈希
- 運行
brew edit fwartner/tap/mac-cleanup- 按
I和更改sha256 "<some hash>"從步驟1開始哈希- 按
:,然後wqEnter- 重新運行安裝
brew install fwartner/tap/mac-cleanup
curl -fsSL https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh | bash -s installwget https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh -O - | bash -s installcurl -o cleanup https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/mac-cleanupchmod +x cleanupsudo mv cleanup /usr/local/bin/cleanup如果安裝捲髮,則需要調用cleanup而不是mac-cleanup 。
curl -fsSL " https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh " | bash -s updatewget " https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh " -O - | bash -s updatecurl -fsSL " https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh " | bash -s uninstallwget " https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh " -O - | bash -s uninstall幫助菜單:
$ mac-cleanup -h
A Mac Cleanup Utility by fwartner
https://github.com/mac-cleanup/mac-cleanup-sh
USAGE:
mac-cleanup [FLAGS]
FLAGS:
-h, --help Prints help menu
-d, --dry-run Print approx space to be cleaned
-v, --verbose Print script debug info
-u, --update Run brew update
由於所有貢獻的人,該項目的存在。
如果您喜歡我正在做的事情,請考慮贊助我的工作!