Hacker News new | past | comments | ask | show | jobs | submit login

I just do this for now:

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




I use brew leaves instead of brew list for this sort of thing; as I usually don't care about the constituent transitive dependencies, only the final results.


I wasn't even aware of existence of that!


Yeah, I don't know if it's mentioned in the docs. I had written my own version before I found it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: