Created
July 11, 2014 12:25
-
-
Save supermethod/377878fce40d49a44b06 to your computer and use it in GitHub Desktop.
Create a Brewfile for migrating your homebrew Cellar
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
#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