Skip to content

Instantly share code, notes, and snippets.

@stackpoet
Forked from nrubin29/homebrew_m1.sh
Created November 29, 2020 23:18
Show Gist options
  • Save stackpoet/63338e4ab5d831528ced6178e9a11bef to your computer and use it in GitHub Desktop.
Save stackpoet/63338e4ab5d831528ced6178e9a11bef to your computer and use it in GitHub Desktop.

Revisions

  1. @nrubin29 nrubin29 revised this gist Nov 24, 2020. No changes.
  2. @nrubin29 nrubin29 created this gist Nov 24, 2020.
    14 changes: 14 additions & 0 deletions homebrew_m1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    # We'll be installing Homebrew in the /opt directory.
    cd /opt

    # Create a directory for Homebrew. This requires root permissions.
    sudo mkdir homebrew

    # Make us the owner of the directory so that we no longer require root permissions.
    sudo chown -R $(whoami) /opt/homebrew

    # Download and unzip Homebrew. This command can be found at https://docs.brew.sh/Installation.
    curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew

    # Add the Homebrew bin directory to the PATH. If you don't use zsh, you'll need to do this yourself.
    echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc