Last active
May 11, 2024 16:56
-
-
Save vdbsh/5567e583121f135036900a32175779a9 to your computer and use it in GitHub Desktop.
This is how you can set architecture of your shellscript runtime by using unconventional shebang, comes in handy for M1+ Macs where you can use both arm64 and x86_64 thru Rosetta 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env /usr/bin/arch -arm64 /bin/bash | |
# shebangarch.sh: This is how you can set architecture of your shellscript runtime by using unconventional shebang | |
# comes in handy for M1+ Macs where you can use both arm64 and x86_64 thru Rosetta 2 | |
echo "I'm $(arch) 😊" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment