imitate Apple in setting initial shell PATH -- especially relevant for MacTeX, MacPorts etc.;
authorwenzelm
Mon, 19 Sep 2011 12:58:52 +0200
changeset 44985 272e8e4e4fc7
parent 44984 6e6e958b2d40
child 44986 6f27ecf2a951
imitate Apple in setting initial shell PATH -- especially relevant for MacTeX, MacPorts etc.;
Admin/MacOS/App1/script
--- a/Admin/MacOS/App1/script	Sun Sep 18 16:12:43 2011 -0700
+++ b/Admin/MacOS/App1/script	Mon Sep 19 12:58:52 2011 +0200
@@ -12,7 +12,9 @@
 # sane environment defaults
 
 cd "$HOME"
-PATH="$PATH:/opt/local/bin"
+if [ -x /usr/libexec/path_helper ]; then
+  eval $(/usr/libexec/path_helper -s)
+fi
 
 [ -z "$LANG" ] && export LANG=en_US.UTF-8