Homebrew

  • macOS用のパッケージマネージャー
  • https://brew.sh/ja/
  • インストール
    • ページにあるスクリプトをターミナルで実行(zshのままで大丈夫)
      /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    • HomebrewをPATHに追加
      インストール時の出力の末尾、「==> Next steps」以下に書かれている内容を実行
      Run these commands in your terminal to add Homebrew to your PATH:

      echo >> /Users/<username>/.zprofile
      echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/<username>/.zprofile
      eval "$(/opt/homebrew/bin/brew shellenv)"