The "arch" utility is your escape hatch to switch the preferred arch for the spawned process and all of its children.
iterm2 -> Preferences -> Profiles -> General
Change the "Login Shell" drop down to "Command" and then enter `arch -x86_64 /usr/local/bin/zsh` or whatever your shell is.
Haven't got the $$$ to test though.
EDIT: you could also craft an oneliner if $SHELL is not defined, something like:
`ps -T $$ | awk 'NR==2{print $NF}' | arch -x86_64 $0`
Are these 'good practices' for Arm Macs?:
1) When spinning up an iTerm session, figure out if it's 'Darwin x86_64' or 'Darwin arm64' - and configure paths accordingly. so they use the right brew binaries.
2) Easily double check what version of a running package/keg based on what arch is displayed in Activity Monitor.
3) That way, you can just use brew with Rosetta to start (which I did) then build up native arm Brew over time. and let the Rosetta brew fall away.
Homebrew gathers anonymous aggregate user behaviour
analytics using Google Analytics. You will be notified the
first time you run brew update or install Homebrew.
Analytics are not enabled until after this notice is shown,
to ensure that you can opt out without ever sending
analytics data.
That is from the Homebrew site.This is fine, because Google can be trusted to come into possession of your uniquely-identified tracking data, and then immediately delete it, without letting military intelligence log it in the process. They have no reason to share it (other than the legal compulsion that FAA 702 provides) or keep it around, as it would not profit them in any way (other than their multibilliondollar advertising business).
Thanks for sharing that will definitely come in handy!
> Homebrew maintainer here. We don’t officially support Big Sur yet, but installing it via Rosetta will cause it to fetch x86 bottles instead of ARM ones. At least, that’s the plan.
It will create X86 binaries instead of ARM ones. (which might be a plus at the current moment)
I just installed Homebrew on my new m1 MacBook Air with:
$ arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/in...)"