[OS X Emacs] where does Mac OS X set default PATH for bash?
Erik Husby
mhusby at broad.mit.edu
Fri Nov 14 14:40:21 EST 2008
Look in these places for bash setups
/etc/profile -- system wide
~/.profile -- personal initialization
~/.bash_profile -- personal initialization
~/.bash_login -- personal initialization
~/.bashrc -- personal initialization
In addition, on Mac OS X, the file
~/.MacOSX/environment.plist
Can be used to define environment variables for applications not
started from a shell.
On Nov 14, 2008, at 2:15 PM, Art Werschulz wrote:
> Hi.
>
> This is maybe off-topic, but there is a trace of Emcas-ness in what
> follows.
>
> I am using bash on my Mac OS X (Leopard) box. My PATH is as follows
> (slightly reformatted for readability);
> /usr/local/texlive/2008/bin/universal-darwin
> .
> /Applications/Emacs.app/Contents/MacOS/bin
> /usr/local/texlive/2007/bin/i386-darwin
> /sw/bin
> /sw/sbin
> /usr/libexec
> /Developer/Tools
> /usr/local/bin
> /usr/local/sbin
> /bin
> /sbin
> /usr/bin
> /usr/sbin
> /usr/X11R6/bin
> /usr/X11/bin
> .
>
> I am not crazy about this, for several reasons. Having a dot
> (current directory) so high in the list is Bad News from a security
> viewpoint. The Emacs.app application doesn't exist on my machine
> anymore. I don't want to search /usr/local/texlive/2007, since I'm
> using the 2008 version of TeXLive.
>
> You may wonder how I'm setting my PATH. Here's how (i.e., here's
> the relevant part of .bashrc):
> TeX=/usr/local/texlive/2008
> (echo $PATH | grep -q /usr/local/sbin) || PATH=/usr/local/sbin:$PATH
> (echo $PATH | grep -q /usr/local/bin) || PATH=/usr/local/bin:$PATH
> PATH=$TeX/bin/universal-darwin:$PATH
> export PATH=${PATH}:.
> So from the looks of things, the default PATH must consist of
> .
> /Applications/Emacs.app/Contents/MacOS/bin
> /usr/local/texlive/2007/bin/i386-darwin
> /sw/bin
> /sw/sbin
> /usr/libexec
> /Developer/Tools
> /usr/local/bin
> /usr/local/sbin
> /bin
> /sbin
> /usr/bin
> /usr/sbin
> /usr/X11R6/bin
> /usr/X11/bin
>
> Since I want to change this, I need to know where this default is
> set. Any ideas?
>
> Thanks.
>
> Art Werschulz
> 207 Stoughton Avenue, Cranford NJ 07016-2838
> (908) 272-1146
>
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
---
Erik Husby
Senior Software Engineer I
Broad Institute of MIT and Harvard
Rm. 2139, 320 Charles St, Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227
email: mhusby at broad.mit.edu AIM: ErikAtBroad
More information about the MacOSX-Emacs
mailing list