[TxMt] Possible path issues?

Robin Houston robin.houston at gmail.com
Sat Jun 9 16:46:58 UTC 2007


On 6/9/07, Mat Schaffer <schapht at gmail.com> wrote:
>
> Does TextMate honor the stuff in environment.plist?
>

Sure it does. When you log in, the values in environment.plist are set, and
passed on to all applications that you launch.

If so is there some way I could identify in .profile if I'm being called by
> TextMate?
>

My question would be, why do you need to set the values in .profile as well?
All I can think of is that you sometimes ssh into the machine, and you want
the environment variables to be set when you log in via ssh. If that's it,
and you don't want to redundantly re-parse environment.plist, couldn't you
just do

if [ -z "$SSH_CONNECTION" ]; then
    # parse $HOME/.MacOSX/environment.plist
    ...
fi

Robin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070609/25d07ec6/attachment.html>


More information about the textmate mailing list