Skip to content

Instantly share code, notes, and snippets.

@gouf
Last active December 29, 2015 03:38
Show Gist options
  • Save gouf/7608635 to your computer and use it in GitHub Desktop.
Save gouf/7608635 to your computer and use it in GitHub Desktop.
インストール済みのBrew ソフトウェアを、Mac Brewdle で使える形式でバックアップ。
#!/bin/sh
# format
brew list | sed 's/\(^.*$\)/brew "\1"/g' > brew
brew tap | sed 's/\(^.*$\)/tap "\1"/g' > tap
brew cask list | sed 's/\(^.*$\)/cask "\1"/g' > cask
# file generate and clean up
cat tap brew cask > Brewdle
rm tap brew cask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment