Created
August 20, 2016 15:17
-
-
Save zabbarob/738bfd3ad787940b9c738396db949acf to your computer and use it in GitHub Desktop.
Clean cached downloads of various package managers on OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Cleans cached downloads of various package managers on OS X | |
function myprintf() { | |
printf "\e[0;35m$1\e[0;m\n" | |
} | |
myprintf "Cleaning Homebrew Packages" | |
brew cleanup | |
brew cask cleanup | |
brew prune | |
myprintf "Cleaning Global NPM Packages" | |
npm cache -g clear |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment