plan9port/mac/Plumb.app/Contents/MacOS/plumb
Russ Cox 61e362add9 mac: arrange for arm64 run on arm64
Makes 9term.app work again (not put you in an x86_64 jail).
2024-10-22 08:11:37 -04:00

18 lines
265 B
Bash
Executable file

#!/bin/bash
if [ -e ~/.bashrc ] ; then
. ~/.bashrc
fi
arch=x86_64
if arch -arch arm64 date >/dev/null 2>&1; then
arch=arm64
fi
PLAN9=${PLAN9:-/usr/local/plan9}
bin=$PLAN9/bin
IFS=$'\n'
for file in $($bin/macargv)
do
arch -arch $arch $bin/macedit "$file"
done