On Sun, Mar 16, 2008 at 5:02 PM, jiho jo.irisson@gmail.com wrote:
On 2008-March-16 , at 16:40 , Niels Kobschaetzki wrote:
My tip: the path-variable TextMate uses doesn't include /usr/texbin When I type env in the Terminal I get a PATH that includes /usr/texbin but it seems that the stuff from .bash_login is only read in my session when I type . ~/.bash_login Therefore I guess there was a change in Mac OS X where my stuff gets its environment from.
I use ~/.bash_profile to set my environment and it gets picked up by leopard's terminal.
My question: How do I get TeX working again in TextMate (and maybe: How do I get Terminal to use .bash_login always)?
Add a PATH shell variable in TextMate (in the prefs>advanced>shell variables) which includes /usr/texbin
or
Set the path in ~/.MacOSX/environment.plist and it gets picked up by all applications. For example mine is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple . com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <dict> <key>EDITOR</key> <string>mate -w</string> <key>LC_CTYPE</key> <string>en_US.UTF-8</string> <key>PATH</key> <string>/usr/texbin:/opt/local/bin:/opt/local/sbin:/Developer/ Tools:/usr /local/bin:/usr/X11R6/bin:/bin:/sbin:/usr/bin:/usr/sbin</string> </dict> </plist>
Thx for that :)
PS: if I remember well you need to log out and back in for changes to this file to be picked up.
I guess so
PPS: For some reason, you also have to set the PATH in ~/.bash_profile for use in Terminal since Terminal rereads its environment on startup (and hence overwrites the PATH you set here). There must be a way to avoid this and have only one place where the environment is set but I could not make it work on my machine.
I have no .bash_profile, .bash_login and .profile -- different web-sites all use one of those files, rarely the same…it seems that nowadays .bash_profile is the one to go…and I'm quite sure that in earlier versions of OS X I needed one of those other files…
Niels
JiHO
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate