by Keyframe · 10y ago · 0 comments
For example, I now list with brew list into a file and edit the file so that whole list is a big brew install. That way if I reinstall OS or go to another I can have same things.
On one machine:
brew bundle dump
On another machine: brew bundle"ls /usr/local/Cellar/ | cat >> myInstall.txt"
cat <(echo brew install) <(brew list) | sed ':a;N;$!ba;s/\n/ /g' > brew_install.txt
It lists directly from brew, prepends brew install and then replaces all newlines with a space and outputs to brew_install.txt