Lisp HUG Maillist Archive

How to automatically load the profile in the shell?

Hi,

I'm on Mac OS X, where the shell started by the Terminal application  
automatically loads the .profile file to set search paths and other  
environment variables. Is it possible to get the shell in LispWorks  
load the .profile file as well? If so, how?

Thanks,
Pascal

-- 
1st European Lisp Symposium (ELS'08)
http://prog.vub.ac.be/~pcostanza/els08/

Pascal Costanza, mailto:pc@p-cos.net, http://p-cos.net
Vrije Universiteit Brussel, Programming Technology Lab
Pleinlaan 2, B-1050 Brussel, Belgium






Re: How to automatically load the profile in the shell?

Hi, there

If you just want to set some environments, maybe this can help:

http://developer.apple.com/qa/qa2001/qa1067.html


>
> Hi,
>
> I'm on Mac OS X, where the shell started by the Terminal application  
> automatically loads the .profile file to set search paths and other  
> environment variables. Is it possible to get the shell in LispWorks  
> load the .profile file as well? If so, how?
>
> Thanks,
> Pascal
>
> -- 
> 1st European Lisp Symposium (ELS'08)
> http://prog.vub.ac.be/~pcostanza/els08/
>
> Pascal Costanza, mailto:pc@p-cos.net, http://p-cos.net
> Vrije Universiteit Brussel, Programming Technology Lab
> Pleinlaan 2, B-1050 Brussel, Belgium
>
>
>
>
>


Re: How to automatically load the profile in the shell?

On Sun, 9 Mar 2008 17:18:40 +0100, Pascal Costanza <pc@p-cos.net> wrote:

>> You might be better off simply doing something like this from a
>> terminal:
>>
>> export PATH=$PATH:/some/additional/path/component
>>
>> /Applications/LispWorks\ 5.0/LispWorks.app/Contents/MacOS/
>> lispworks-5-0-0-macos-universal
>>
>> and launching LispWorks that way.
>
> Perfect, that works!

If you only need updates to specific environment variables like PATH
(presumably for programs you execute or foreign libraries you load
from within Lisp), why don't you just set them with (SETF
LW:ENVIRONMENT-VARIABLE)?  That's what I'm doing for example in my
"Starter Pack" to make sure the SQLite shared library can be loaded
from a random place.

  http://weitz.de/starter-pack/start.lisp

Edi.


Re: How to automatically load the profile in the shell?

On Sun, 9 Mar 2008 18:02:40 +0100, Pascal Costanza <pc@p-cos.net> wrote:

> ...because that's not what I want. ;)

OK, I see.  Your "Perfect, that works!" was probably a bit misleading
then...


Updated at: 2020-12-10 08:43 UTC