_partials/macos_apple_silicon.md
If you bought your computer after late 2020, chances are it has a new Apple silicon chip instead of an Intel processor: let's find out.
Open a new terminal window from Applications > Utilities or search for it with Spotlight:
Copy-paste the following command in the terminal and hit Enter to execute.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/lewagon/setup/master/utils/macos_list_processor_type.sh)"
☝️ The result of the command should indicate whether your computer uses Apple Silicon.
If your computer uses Apple Silicon, expand the paragraph below and go through it. Otherwise ignore it.
<details> <summary>👉 Setup for Apple Silicon 👈</summary>We need to uninstall Homebrew in case a native version was installed.
Execute the following command in the terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
If brew was not installed you will get the message brew: command not found!
Open the Finder app (or search for it with Spotlight).
Go to Applications > Utilities.
Duplicate the terminal app (select it, then Cmd + C, Cmd + V), and rename a copy as Terminal Rosetta.
Press Cmd + I on the Terminal Rosetta app, then check the box "Open using Rosetta".
⚠️ From now on during the bootcamp, whenever you are asked to open a Terminal, you will use the Terminal Rosetta app.
</details>