aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKADOTA, Kyohei <lufia@users.noreply.github.com>2018-11-14 13:59:49 +0900
committerRuss Cox <rsc@golang.org>2018-11-13 23:59:49 -0500
commitf3ed5754b1c4ccc616afb1fbb1ce65e1f8f29808 (patch)
tree1b997f63ae817b69278f394ea6befdd0e3d325a8
parent73ea36569e83560168cfd7e40d85d9d247bce593 (diff)
downloadplan9port-f3ed5754b1c4ccc616afb1fbb1ce65e1f8f29808.tar.gz
plan9port-f3ed5754b1c4ccc616afb1fbb1ce65e1f8f29808.tar.bz2
plan9port-f3ed5754b1c4ccc616afb1fbb1ce65e1f8f29808.zip
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"
-rwxr-xr-xmac/9term.app/Contents/MacOS/9term4
1 files changed, 4 insertions, 0 deletions
diff --git a/mac/9term.app/Contents/MacOS/9term b/mac/9term.app/Contents/MacOS/9term
index ef6692c3..d6487348 100755
--- a/mac/9term.app/Contents/MacOS/9term
+++ b/mac/9term.app/Contents/MacOS/9term
@@ -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 &