The missing brew bundle
Since homebrew doesn't support bundle anymore, I get around it by adding a simple shell script as ~/bin/brew-bundle
#!/bin/bash
file="$1"
if [ -z "$file" ]; then
echo "Usage: brew-bundle <Brewfile>"
exit 1
fi
while read -r line || [[ -n $line ]]
do
command=${line/##*/}
if [ -n "$command" ]; then
brew $command
fi
done < "$file"
This first version ignores lines starting with #
.
Written by Karsten Silkenbäumer
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#