9term.app: add $PLAN9/bin to $PATH if not already in $PATH (#144)

9term set $PLAN9 if PLAN9 is not set. But $PATH is not set.
As a result, 9term exits with "exec devdraw: No such file or directory"
This commit is contained in:
KADOTA, Kyohei 2018-11-14 13:59:49 +09:00 committed by Russ Cox
parent 73ea36569e
commit f3ed5754b1

View file

@ -2,4 +2,8 @@
cd $HOME
. ~/.bashrc
PLAN9=${PLAN9:-/usr/local/plan9}
if ! [[ :$PATH: =~ :$PLAN9/bin: ]]
then
PATH=$PATH:$PLAN9/bin
fi
$PLAN9/bin/9term -W600x800 &