-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: "Update All the Things" | ||
date: 2018-02-12 | ||
layout: post | ||
tags: tech, bash, mac | ||
--- | ||
|
||
The other day, I was wishing for an easy way to update all of the [CLI](https://en.wikipedia.org/wiki/Command-line_interface) 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`: | ||
|
||
```bash | ||
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](https://brew.sh) or [NPM](https://www.npmjs.com) 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! |