環境構築前準備
今使っているMacの環境を再現できるようにする
Brewfileの準備
まずは自分が入れたアプリケーション一覽を作成する
下記コマンドでホームディレクトリに.Brewfileが作られる。
brew bundle dump --global --force --describe
コマンドのとなりの オプションは下記説明を引用すると
The --force option will allow an existing Brewfile to be overwritten as well. The --describe option will output a description comment above each line. The --no-restart option will prevent restart_service from being added to brew lines with running services.
--forceはBrewfileの強制上書き --describeはいれたアプリケーションの説明を加えてくれるようにしておいた。--globalは'~.Brewfile'をつかってくれるということらしい
作成されたBrewfile
.Brewfile
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
tap "mono0926/license-plist"
# User-friendly command-line shell for UNIX-like operating systems
brew "fish"
# Command-line fuzzy finder written in Go
brew "fzf"
# Distributed revision control system
brew "git"
# Git extension for versioning large files
brew "git-lfs"
# Open source programming language to build simple/reliable/efficient software
brew "go"
# Mac App Store command-line interface
brew "mas"
# Node.js version manager
brew "nodebrew"
# Simplistic interactive filtering tool
brew "peco"
# Python dependency management tool
brew "pipenv"
# PNG image optimizing utility
brew "pngquant"
# Ruby version manager
brew "rbenv"
# Text interface for Git repositories
brew "tig"
# A license list generator of all your dependencies for iOS applications
brew "mono0926/license-plist/license-plist"
mas "co.nimbusweb.nimbuscapture", id: 1125725441
mas "com.apple.dt.Xcode", id: 497799835
mas "com.apple.iWork.Keynote", id: 409183694
mas "com.pearlmountainsoft.PicGIFLite", id: 844918735
メモ
masでリスト化されているものは、Mac App Storeで入れたものである
アンイストールは、コマンドが無くどうすれば良いのかわからず困ったが、ゴミ箱にいらないアプリケーションを放り込んだらリストから消えたのでこれで良いのだと思われる。
参考文献
homebrew-bundle公式GitHub
mas-cli/mas
brew bundleでMacのアプリをまとめてインストール・管理