News for hackers. Stuff that matters.
Re:Ask HN: Can I see your scripts? by ilozinski on Monday August 15, 2022 @10:55AM (#32470460)
I work on an m1 macbook and a lot of times using arm architecture breaks dependencies. I have two really basic functions in my .zshrc (should also work for bash):

# M1 compatibility switches

arm() { arch -arm64 "${@:-$SHELL}" }

x86() { arch -x86_64 "${@:-$SHELL}" }

This with the addition of `$(uname -m)` in my $PROMPT, has saved me a lot of time by letting me switch between arm and x86_64 architecture.

There are no comments on this comment yet.