Skip to content

Instantly share code, notes, and snippets.

@supermethod
Created July 11, 2014 12:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save supermethod/377878fce40d49a44b06 to your computer and use it in GitHub Desktop.
Save supermethod/377878fce40d49a44b06 to your computer and use it in GitHub Desktop.
Create a Brewfile for migrating your homebrew Cellar
#Create the Brewfile
touch Brewfile
# tap homebrew versions repo
echo 'tap homebrew/versions' >> Brewfile
# add install commands for everything installed in the Cellar
for i in `ls /usr/local/Cellar/`; do echo "install $i" >> Brewfile; done;
# to use run 'brew bundle' with the Brewfile in the current directory
# or run 'brew bundle /path/to/Brewfile'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment