hisaac.net

Update All the Things

The other day, I was wishing for an easy way to update all of the CLI package managers on my computer at once, rather than having to type each command separately. Then I realized, this would be a great job for a bash/zsh alias!

Here’s what I’ve come up with. I call it update-all-the-things:

alias update-all-the-things='
echo "🍺 Updating Homebrew" ; brew upgrade ;
echo "🚀 Updating Global Node Modules" ; npm update -g ;
echo "💎 Updating RubyGems" ; gem update'

I think it would be fun to make this into an actual package itself someday. A super simple little Homebrew or NPM package would be fun to make. Have any ideas on how to implement it as its own package? Any package managers I’m missing? Let me know!

Have a comment or notice a typo? Send me an email, or fork this post on GitHub.