A significant amount of this logic can be replaced directly by brew bundle: github.com/Homebrew/homebrew-bundle
Specifically brew bundle --global and brew bundle cleanup --global.
brew bundle --global
brew bundle cleanup --global
Nice! homebrew-bundle definitely looks like a good alternative for more complicated setups. I still like the simplicity and flexibility of managing it myself since my setup is so minimal anyways.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.