Skip to content

Commit 621ccc5

Browse files
jonathanperretljharb
authored andcommitted
Clarify the M1 shell instructions
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.
1 parent b19d8db commit 621ccc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -919,13 +919,13 @@ arm64
919919
$ nvm install v12.20.1
920920
# Now uninstall the version we want to replace:
921921
$ nvm uninstall v14.15.4
922-
# Set the architecture for our shell to 64-bit X86:
922+
# Launch a new zsh process under the 64-bit X86 architecture:
923923
$ arch -x86_64 zsh
924924
# Install node using nvm. This should download the precompiled x64 binary:
925925
$ nvm install v14.15.4
926926
# Now check that the architecture is correct:
927927
$ node -p process.arch
928928
x64
929-
# It is now safe to revert zsh back to the native architecture:
930-
$ arch -arm64 zsh
929+
# It is now safe to return to the arm64 zsh process:
930+
$ exit
931931
```

0 commit comments

Comments
 (0)