Replacement for 'brew bundle'
1 min read

Replacement for 'brew bundle'

Since ‘brew bundle’ has been deprecated, here is a temporary fix.

Create a file named brew-bundle and write the code below.

#!/usr/bin/env sh
[ -f "Brewfile" ] || (echo "No Brewfile found" 1>&2 && exit -1)
while read line
  [ "${line###*}" ] && brew $line
done < Brewfile

Place file in ~/bin/ and chmod +x ~/bin/brew-bundle

You’re now able to use your Brewfile again.