From 9c4c20d4f7121b51af94dd3b1f05b1b70de04931 Mon Sep 17 00:00:00 2001 From: ericlikedis Date: Wed, 23 Aug 2023 15:57:13 -0500 Subject: [PATCH] formatting --- ...€” How to switch the Terminal between x86_64 and arm64.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/_posts/2023-06-12-M1 Mac — How to switch the Terminal between x86_64 and arm64.md b/_posts/2023-06-12-M1 Mac — How to switch the Terminal between x86_64 and arm64.md index e6bff66..1bf5bf5 100644 --- a/_posts/2023-06-12-M1 Mac — How to switch the Terminal between x86_64 and arm64.md +++ b/_posts/2023-06-12-M1 Mac — How to switch the Terminal between x86_64 and arm64.md @@ -22,15 +22,16 @@ So let’s look at what’s behind it, and how you too can easily set it up! The main command which does the magic is the one below: +``` $env /usr/bin/arch - /bin/zsh --login - +``` … just replace the __ with your preferred one.. **For example:** - To see your current architecture, type: -$arch +`$arch` ![](https://miro.medium.com/v2/resize:fit:1400/1*BFSzZUxZ2RAIDrOS9ncMJA.png) @@ -40,7 +41,9 @@ As we see in the image above, I am currently using arm64, hence any code I compi - To switch to x86_64, type: +```shell ==$env /usr/bin/arch -x86_64 /bin/zsh —-login== +``` Now if you type the arch command again, you will see that the target architecture has been changed. Now you can go ahead and compile your code using Rosetta 2 for the x86_64 architecture.