From 621ccc5d13c5c8ca6cb49d3a6fd1b77b575d3c9f Mon Sep 17 00:00:00 2001 From: Jonathan Perret Date: Tue, 23 Mar 2021 14:37:04 +0100 Subject: [PATCH] Clarify the M1 shell instructions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The instructions seemed to encourage the misconception that `arch -x86_64 zsh` somehow modifies the default architecture for `zsh`, an operation which would need to be "reverted". In fact, `arch -x86_64 …` merely spawns a new process under the selected architecture. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b60a8c2..8f6caec 100644 --- a/README.md +++ b/README.md @@ -919,13 +919,13 @@ arm64 $ nvm install v12.20.1 # Now uninstall the version we want to replace: $ nvm uninstall v14.15.4 -# Set the architecture for our shell to 64-bit X86: +# Launch a new zsh process under the 64-bit X86 architecture: $ arch -x86_64 zsh # Install node using nvm. This should download the precompiled x64 binary: $ nvm install v14.15.4 # Now check that the architecture is correct: $ node -p process.arch x64 -# It is now safe to revert zsh back to the native architecture: -$ arch -arm64 zsh +# It is now safe to return to the arm64 zsh process: +$ exit ```