aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Klaiber <vinkla@users.noreply.github.com>2015-04-28 08:24:33 +0200
committerMathias Bynens <mathias@qiwi.be>2015-04-30 13:54:21 +0200
commit79e415e0eda32029bdda6b44307ab589af7d66b8 (patch)
tree69467c3d43769978b42349bd8e1a517a2a8a9ea5
parent4ce64aa819c957d7d45a8ffea462c1d0a5e16f45 (diff)
downloaddotfiles-79e415e0eda32029bdda6b44307ab589af7d66b8.tar.gz
dotfiles-79e415e0eda32029bdda6b44307ab589af7d66b8.tar.bz2
dotfiles-79e415e0eda32029bdda6b44307ab589af7d66b8.zip
Add `--all` to `brew upgrade`
Homebrew recently started to hint that everyone should update their workflows for `brew upgrade`: > brew upgrade with no arguments will change behaviour soon! It currently upgrades all formula but this will soon change to require `--all`. Please update any workflows, documentation and scripts! https://github.com/Homebrew/homebrew/commit/9032f165bec3d0c7452169093fab32578816043b Closes #531.
-rw-r--r--.aliases2
-rwxr-xr-xbrew.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/.aliases b/.aliases
index daca01b..1313fe5 100644
--- a/.aliases
+++ b/.aliases
@@ -45,7 +45,7 @@ alias week='date +%V'
alias timer='echo "Timer started. Stop with Ctrl-D." && date && time cat && date'
# Get OS X Software Updates, and update installed Ruby gems, Homebrew, npm, and their installed packages
-alias update='sudo softwareupdate -i -a; brew update; brew upgrade; brew cleanup; npm install npm -g; npm update -g; sudo gem update --system; sudo gem update'
+alias update='sudo softwareupdate -i -a; brew update; brew upgrade --all; brew cleanup; npm install npm -g; npm update -g; sudo gem update --system; sudo gem update'
# IP addresses
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
diff --git a/brew.sh b/brew.sh
index 0efbd35..101f3b4 100755
--- a/brew.sh
+++ b/brew.sh
@@ -12,7 +12,7 @@ while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
brew update
# Upgrade any already-installed formulae.
-brew upgrade
+brew upgrade --all
# Install GNU core utilities (those that come with OS X are outdated).
# Don’t forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.