mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
61e362add9
Makes 9term.app work again (not put you in an x86_64 jail).
33 lines
560 B
Bash
Executable file
33 lines
560 B
Bash
Executable file
#!/bin/bash
|
|
fshell=$(finger $(whoami) | sed -n 's/.*Shell: //p' | sed 1q)
|
|
SHELL=${fshell:-$SHELL}
|
|
PLAN9=${PLAN9:-/usr/local/plan9}
|
|
cd $HOME
|
|
arch=x86_64
|
|
if arch -arch arm64 date >/dev/null 2>&1; then
|
|
arch=arm64
|
|
fi
|
|
case "$SHELL" in
|
|
*/rc)
|
|
echo '
|
|
if(! ~ $PLAN9/bin $path)
|
|
path=($path $PLAN9/bin)
|
|
arch -arch '$arch' $PLAN9/bin/9term -l -W600x800 &
|
|
' | $SHELL -l
|
|
exit 0
|
|
;;
|
|
*/bash)
|
|
. ~/.bash_profile
|
|
;;
|
|
*)
|
|
. ~/.profile
|
|
;;
|
|
esac
|
|
|
|
if ! [[ :$PATH: =~ :$PLAN9/bin: ]]
|
|
then
|
|
PATH=$PATH:$PLAN9/bin
|
|
fi
|
|
arch -arch $arch $PLAN9/bin/9term -l -W600x800 &
|
|
exit 0
|
|
|