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