Skip to content

Instantly share code, notes, and snippets.

@dnedrow
Created February 16, 2022 19:39
Show Gist options
  • Select an option

  • Save dnedrow/a2a06de0fed29a17cf2aecc5fd7d82bc to your computer and use it in GitHub Desktop.

Select an option

Save dnedrow/a2a06de0fed29a17cf2aecc5fd7d82bc to your computer and use it in GitHub Desktop.
Shell script to install both ARM and Intel versions of Homebrew on M1+ Mac
#!/bin/bash
// This script can be used to install Homebrew both both MacOS
// architectures when run on an M1+ Mac.
//Install the ARM version
arch -arm64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
// Install the Intel version
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment