Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Clean cached downloads of various package managers on OS X
#!/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