LoginSignup
6
6

More than 5 years have passed since last update.

Brewfileのためにインストール時のオプション付きでbrew listを出す

Posted at

Homebrewを移植するときにBrewfileがなかったのでbrew listしてみたら
ビルド時のオプションが失われてしまったので、オプション付きで出力するワンライナー。

for i in `brew list`; do print "install $i`brew info $i | grep 'Built from source with:' | sed -e 's/^.*://' -e 's/,//g'`"; done 2> /dev/null

こんなかんじで出ます。

(--snip--)
isntall diffutils
isntall docker
isntall doxygen
isntall ed --default-names
isntall emacs --japanese --srgb --cocoa
isntall expect --enable-threads
isntall faac
isntall ffmpeg
install macvim --with-lua --with-luajit --with-python3 --override-system-vim
(--snip--)
6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6